Subject: | t/00_load.t fails without network access |
Very nice module, thanks!
Ironically, t/00_load.t fails if there is no network.
1) in a chroot with everything except localhost firewalled off
$ prove --blib --verbose t/*.t
# No tests run!
t/00_load.t ............
1..1
1..0 # Skipped: no host: www.google.com
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 1/1 subtests
t/01_getserv.t ......... skipped: no host: www.google.com
t/02_multiple_hosts.t .. skipped: no host: www.google.com
t/03_badhost.t ......... skipped: no host: foobar
t/04_env.t ............. skipped: NO_NETWORK_TESTING
# Must supply server and a port pairs. You supplied www.google.com
t/05_badarg.t ..........
ok 1
1..1
ok
t/06_badport.t ......... skipped: Could not find a port number for foobar
Test Summary Report
-------------------
t/00_load.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: More than one plan found in TAP output
Bad plan. You planned 1 tests but ran 0.
Files=7, Tests=1, 0 wallclock secs ( 0.03 usr 0.00 sys + 0.12 cusr 0.02 csys = 0.17 CPU)
Result: FAIL
2) without a firewall but with NO_NETWORK_TESTING set
$ NO_NETWORK_TESTING=1 prove --blib --verbose t/*.t
t/00_load.t ............
1..1
# No tests run!
1..0 # Skipped: NO_NETWORK_TESTING
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 1/1 subtests
t/01_getserv.t .........
1..0 # Skipped: NO_NETWORK_TESTING
skipped: NO_NETWORK_TESTING
t/02_multiple_hosts.t ..
1..0 # Skipped: NO_NETWORK_TESTING
skipped: NO_NETWORK_TESTING
t/03_badhost.t .........
1..0 # Skipped: NO_NETWORK_TESTING
skipped: NO_NETWORK_TESTING
t/04_env.t .............
1..0 # Skipped: NO_NETWORK_TESTING
skipped: NO_NETWORK_TESTING
t/05_badarg.t ..........
1..0 # Skipped: NO_NETWORK_TESTING
skipped: NO_NETWORK_TESTING
t/06_badport.t .........
1..0 # Skipped: NO_NETWORK_TESTING
skipped: NO_NETWORK_TESTING
Test Summary Report
-------------------
t/00_load.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: More than one plan found in TAP output
Bad plan. You planned 1 tests but ran 0.
Files=7, Tests=0, 0 wallclock secs ( 0.04 usr 0.00 sys + 0.11 cusr 0.02 csys = 0.17 CPU)
Result: FAIL
Cheers,
gregor, Debian Perl Group