You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Adam Prime <ad...@utoronto.ca> on 2009/03/21 17:47:59 UTC
Re: mp2 bug t/apache/util.t
Oliver Block wrote:
> 1. Problem Description:
>
> Failed Test Stat Wstat Total Fail List of Failed
> -------------------------------------------------------------------------------
> t/apache/util.t 8 4 1-4
> 8 tests and 1 subtest skipped.
> Failed 1/246 test scripts. 4/2496 subtests failed.
> Files=246, Tests=2496, 141 wallclock secs (94.68 cusr + 17.77 csys = 112.45
> CPU)
> Failed 1/246 test programs. 4/2496 subtests failed.
> [warning] server localhost:8529 shutdown
> [ error] error running tests (please examine t/logs/error_log)
> +--------------------------------------------------------+
> | Please file a bug report: http://perl.apache.org/bugs/ |
> +--------------------------------------------------------+
> make: *** [run_tests] Fehler 1
>
>
> t/apache/util....1..8
> # Running under perl version 5.010000 for linux
> # Current time local: Sat Mar 21 18:08:07 2009
> # Current time GMT: Sat Mar 21 17:08:07 2009
> # Using Test.pm version 1.25
> # Using Apache/Test.pm version 1.31
> # testing : Apache2::Util::ht_time($pool)
> # expected: (?-xism:^\w+, \d\d \w+ \d\d\d\d \d\d:\d\d:\d\d)
> # received: Sa, 21 Mär 2009 17:08:08 GMT
> not ok 1
> # testing : Apache2::Util::ht_time($pool, $time)
> # expected: (?-xism:^\w+, \d\d \w+ \d\d\d\d \d\d:\d\d:\d\d)
> # received: Sa, 21 Mär 2009 17:08:08 GMT
> not ok 2
> # testing : Apache2::Util::ht_time($pool, $time, $fmt)
> # expected: (?-xism:^\w+, \d\d \w+ \d\d\d\d \d\d:\d\d:\d\d)
> # received: Sa, 21 Mär 2009 17:08:08 GMT
> not ok 3
> # testing : Apache2::Util::ht_time($pool, $time, $fmt, $gmt)
> # expected: (?-xism:^\w+, \d\d \w+ \d\d\d\d \d\d:\d\d:\d\d)
> # received: Sa, 21 Mär 2009 18:08:08 CET
> not ok 4
This looks like a localization thing to me. I'm guessing that on your
system for some reason ^\w+$ doesn't match against 'Mär'. It fails on
my gentoo box too:
perl -e "print ('Mär' =~ /^\w+$/)"
prints undef.
however,
perl -Mutf8 -e "print ('Mär' =~ /^\w+$/) , qq[\n\n]"
works, so i'm guessing we just need to through a "use utf8" into the
test or something?
In the meantime, that seems like a bug in the test to me, more than a
problem with mod_perl.
Re: mp2 bug t/apache/util.t
Posted by Adam Prime <ad...@utoronto.ca>.
Adam Prime wrote:
> This looks like a localization thing to me. I'm guessing that on your
> system for some reason ^\w+$ doesn't match against 'Mär'. It fails on
> my gentoo box too:
>
> perl -e "print ('Mär' =~ /^\w+$/)"
>
> prints undef.
>
> however,
>
> perl -Mutf8 -e "print ('Mär' =~ /^\w+$/) , qq[\n\n]"
>
> works, so i'm guessing we just need to through a "use utf8" into the
> test or something?
>
> In the meantime, that seems like a bug in the test to me, more than a
> problem with mod_perl.
I just looked at this a bit further, and it would appear that the test
does attempt handle utf8 locals. The actual code for the tests resides
in t/response/TestApache/util.pm. If you want to try to figure out
what's really going on, that's where you should look.
Adam
Re: mp2 bug t/apache/util.t
Posted by Oliver Block <li...@oliver-block.eu>.
Am Samstag, 21. März 2009 17:47:59 schrieben Sie:
> perl -e "print ('Mär' =~ /^\w+$/)"
>
> prints undef.
>
> however,
>
> perl -Mutf8 -e "print ('Mär' =~ /^\w+$/) , qq[\n\n]"
>
> works, so i'm guessing we just need to through a "use utf8" into the
> test or something?
Good guess! Everything as predicted.
> In the meantime, that seems like a bug in the test to me, more than a
> problem with mod_perl.
That's right. And that's why I reported the problem with the hanging server
process -- if the process ever starts existing. That's probably a test
problem too, I think.