Skip Menu |

This queue is for tickets about the NetAddr-IP CPAN distribution.

Report information
The Basics
Id: 29595
Status: resolved
Priority: 0/
Queue: NetAddr-IP

People
Owner: Nobody in particular
Requestors: KevinAMcGrail-CPAN [...] mcgrail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 4.007
Fixed in: (no value)



Subject: Fails Tests v4-wnew if wildcard DNS is in use
The test below fails for v4-wnew.t (and fails for numerous CPAN testers) if a domain has wildcard DNS. For example *.pccc.com is defined but *.peregrinehw.com. Changing /etc/resolve.conf to search peregrinehw.com will work but pccc.com (the default) does not work. This is because default.neveranydomainlikethis.pccc.com does exist as a CNAME for pccc.com: nslookup default.neveranydomainlikethis.pccc.com Server: 63.218.83.19 Address: 63.218.83.19#53 default.neveranydomainlikethis.pccc.com canonical name = pccc.com. Name: pccc.com Address: 63.216.184.9 I believe this identifies the test as needing more work rather than a bug. make TEST_VERBOSE=1 TEST_FILES=t/v4-wnew.t test make[1]: Entering directory `/usr/src/NetAddr-IP-4.007/Lite/Util' make[1]: Leaving directory `/usr/src/NetAddr-IP-4.007/Lite/Util' PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(1, '../blib/lib', '../blib/arch')" t/v4-wnew.t t/v4-wnew....1..12 ok 1 - defined ->new(default) # # The following 8 tests involve resolving (hopefully) # non-existant names. This may take a while. ok 2 - defined ->new(any) ok 3 - defined ->new(broadcast) ok 4 - defined ->new(loopback) # Failed test (t/v4-wnew.t at line 20) not ok 5 - not defined ->new(default.neveranydomainlikethis) # Failed test (t/v4-wnew.t at line 20) not ok 6 - not defined ->new(nohostlikethis.default) # Failed test (t/v4-wnew.t at line 20) not ok 7 - not defined ->new(any.neveranydomainlikethis) # Failed test (t/v4-wnew.t at line 20) not ok 8 - not defined ->new(nohostlikethis.any) # Failed test (t/v4-wnew.t at line 20) not ok 9 - not defined ->new(broadcast.neveranydomainlikethis) # Failed test (t/v4-wnew.t at line 20) not ok 10 - not defined ->new(nohostlikethis.broadcast) # Failed test (t/v4-wnew.t at line 20) not ok 11 - not defined ->new(loopback.neveranydomainlikethis) # Failed test (t/v4-wnew.t at line 20) not ok 12 - not defined ->new(nohostlikethis.loopback) # Looks like you failed 8 tests of 12. dubious Test returned status 8 (wstat 2048, 0x800) DIED. FAILED tests 5-12 Failed 8/12 tests, 33.33% okay Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/v4-wnew.t 8 2048 12 8 66.67% 5-12 Failed 1/1 test scripts, 0.00% okay. 8/12 subtests failed, 33.33% okay. make: *** [test_dynamic] Error 8
updated test for non-existent domains in v4.009