Subject: | dubious use of skip in t\30_filter_httpd.t |
at line 125, I don't know what this is supposed to be
if (0 and $^O eq "MSWin32" and $] < 5.008003) {
skip("Please upgrade ActivePerl to pass this test.");
}
else {
is($req->content, "I=like&tasty=pie\n",
'simple post: HTTP::Request object contains proper content');
}
but it's just plain wrong.
On perl 5.6.1 it dies with
ok 31 - simple post: HTTP::Request object contains proper URI
skip() needs to know $how_many tests are in the block at t/30_filter_httpd.t line 125
ok 32 # skip Please upgrade ActivePerl to pass this test.
Label not found for "last SKIP" at C:/perl/site/lib/Test/More.pm line 813.
# Looks like you planned 56 tests but only ran 32.
Changing the if line to
if (0 and $^O eq "MSWin32" and $] < 5.008003) {
and running the test gives
All tests successful, 7 subtests skipped.
Seems to me like you should be testing for an appropriate version of HTTP::Request, not perl. Its easy to upgrade modules