You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by bio learner <bi...@gmail.com> on 2005/10/15 03:52:47 UTC

a problem with the $fmt

 When I ran the make test suite, I have been met a problem.
t/apache/util....1..8
# Running under perl version 5.008005 for linux
# Current time local: Sat Oct 15 07:52:12 2005
# Current time GMT: Fri Oct 14 23:52:12 2005
# Using Test.pm <http://Test.pm> version 1.25
# Using Apache/Test.pm version 1.25
# testing : Apache2::Util::ht_time($pool)
# expected: (?-xism:^\w+, \d\d \w+ \d\d\d\d \d\d:\d\d:\d\d)
# received: 五, 14 10月 2005 23:52:18 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: 五, 14 10月 2005 23:52:18 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: 五, 14 10月 2005 23:52:18 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: 六, 15 10月 2005 07:52:18 CST
not ok 4
# testing : Apache2::Util::escape_path / partial=1 / default
# expected: a%20'long'%20file%3f.html
# received: a%20'long'%20file%3f.html
ok 5
# testing : Apache2::Util::escape_path / partial=1 / explicit
# expected: a%20'long'%20file%3f.html
# received: a%20'long'%20file%3f.html
ok 6
# testing : Apache2::Util::escape_path / partial=0
# expected: a%20'long'%20file%3f.html
# received: a%20'long'%20file%3f.html
ok 7
# testing : Apache2::Util::escape_path / partial=0 / ./ prefix
# expected: ./a%20'long'%20file%3f.html:
# received: ./a%20'long'%20file%3f.html:
ok 8
FAILED tests 1-4
Failed 4/8 tests, 50.00% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/apache/util.t 8 4 50.00% 1-4


The $fmt(in t/response/TestApache/util.pm) is "%a, %d %b %Y %H:%M:%S %Z",
but my system language is simple Chinese.
If the system language is English, the make test suite will OK!