mojolicious / mojo

:sparkles: Mojolicious - Perl real-time web framework

Home Page:https://mojolicious.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

briang opened this issue · comments

  • 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