Subject: | Sometimes tests fail |
Hi,
While preparing PoCo-Server-SimpleHTTP for the Debian Perl Group I
discovered by chance that sometimes tests fail. I had to run make test
in a loop to reproduce the error. It should be noted that I can
reproduce the problem both in perl 5.8.8 and 5.10.0.
The tests that fail here are t/05_run.t and t/11_keepalive.t.
$ while perl -Iblib/arch -Iblib/lib t/11_keepalive.t; do :; done
...
1..18
ok 1 - on_close with 2 arguments
ok 2 - First is the wheel ID=3
ok 3 - ... with some extra data
ok 4 - Second is a string
not ok 5 - Got some test results
# Failed test 'Got some test results'
# in t/11_keepalive.t at line 90.
# Looks like you planned 18 tests but only ran 5.
# Looks like you failed 1 test of 5 run.
$ while perl -Iblib/arch -Iblib/lib t/05_run.t; do :; done
...
1..22
ok 1 - on_close with 2 arguments
ok 2 - First is the wheel ID=4
ok 3 - ... with some extra data
ok 4 - Second is a string
ok 5 - on_close with 2 arguments
ok 6 - First is the wheel ID=8
ok 7 - ... with some extra data
ok 8 - Second is a string
# Looks like you planned 22 tests but only ran 8.
Thanks, Tincho.