Subject: | t/cgi_maypole.t fails due to header order |
In t/cgi_maypole.t, test 28 fails, apparently due to non-determinism of header order. The test should probably be recoded slightly to handle different sequences of header output.
/Lars
--cut--
[lth@dask2 Maypole-2.09]$ make test TEST_FILES=t/cgi_maypole.t TEST_VERBOSE=1
PERL_DL_NONLAZY=1 /usr/local/bin/perl5.6.2 "-MExtUtils::Command::MM" "-e" "test_harness(1, 'blib/lib', 'blib/arch')" t/cgi_maypole.t
t/cgi_maypole....1..30
[...]
not ok 28 - ... prints output, including custom headers
# Failed test (t/cgi_maypole.t at line 115)
# got: 'X-bender: kiss my shiny metal ass
# Content-length: 12
# Content-Type: text/plain; charset=iso8859-1
#
# Hello World!'
# expected: 'Content-length: 12
# X-bender: kiss my shiny metal ass
# Content-Type: text/plain; charset=iso8859-1
#
# Hello World!'
ok 29 - CGI::Maypole->can('get_template_root')
ok 30 - ... catdir(document_root, [relative_url])
# Looks like you failed 1 test of 30.
dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 28
Failed 1/30 tests, 96.67% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/cgi_maypole.t 1 256 30 1 3.33% 28
Failed 1/1 test scripts, 0.00% okay. 1/30 subtests failed, 96.67% okay.
*** Error code 2
Stop in /usr/home/lth/cvs/ports/www/p5-Maypole/work/Maypole-2.09.
[lth@dask2 Maypole-2.09]$
--cut--