Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

t/mojo/log.t fails when $ENV{PERL_UNICODE} =~ /D/ #2114

Open
briang opened this issue Sep 21, 2023 · 0 comments
Open

t/mojo/log.t fails when $ENV{PERL_UNICODE} =~ /D/ #2114

briang opened this issue Sep 21, 2023 · 0 comments

Comments

@briang
Copy link

briang commented Sep 21, 2023

  • Mojolicious version: 9.34 & 9.33 and probably others
  • Perl version: 5.36.0
  • Operating system: Ubuntu 23.04

Steps to reproduce the behavior

cpan --look Mojolicious 
perl Makefile.PL
PERL_UNICODE=D
prove t/mojo/log.t

Expected behavior

The test should have passed

Actual behavior

$ prove t/mojo/log.t 
t/mojo/log.t .. 1/? 
    #   Failed test 'right fatal message'
    #   at t/mojo/log.t line 42.
Wide character in print at /opt/perl/perls/dev-36.0/lib/site_perl/5.36.0/Test2/Formatter/TAP.pm line 125.
    #                   '[2023-09-21 16:24:54.92233] [10965] [error] Just works
    # [2023-09-21 16:24:54.92244] [10965] [fatal] I ⥠Mojolicious
    # [2023-09-21 16:24:54.92247] [10965] [debug] Works too
    # [2023-09-21 16:24:54.92248] [10965] [debug] And this too
    # '
    #     doesn't match '(?^u:\[.*\] \[fatal\] I ♥ Mojolicious\n)'
    # Looks like you failed 1 test of 4.

#   Failed test 'Logging to STDERR'
#   at t/mojo/log.t line 45.
# Looks like you failed 1 test of 15.
t/mojo/log.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/15 subtests 

Test Summary Report
-------------------
t/mojo/log.t (Wstat: 256 (exited 1) Tests: 15 Failed: 1)
  Failed test:  2
  Non-zero exit status: 1
Files=1, Tests=15,  0 wallclock secs ( 0.03 usr  0.01 sys +  0.16 cusr  0.04 csys =  0.24 CPU)
Result: FAIL

I've created this issue after discussion on reddit

@briang briang changed the title t/mojo/log.t fails when $ENV{PERL_UNICODE} == 'D' t/mojo/log.t fails when $ENV{PERL_UNICODE} =~ /D/ Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant