Skip Menu |

This queue is for tickets about the Net-Ping CPAN distribution.

Report information
The Basics
Id: 118526
Status: resolved
Priority: 0/
Queue: Net-Ping

People
Owner: Nobody in particular
Requestors: CHORNY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 2.55
  • 2.59
  • 2.59_01
  • 2.59_02
  • 2.61
  • 2.63
Fixed in: 2.64



Subject: getnameinfo failure on Windows
I was unable to copy getnameinfo argument to clipboard, so removed it here. OS: Windows XP, different versions of perl. C:\strawberry160\perl\bin\perl.exe "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib\lib', 'blib\arch')" t/*.t t/zz_legacy/*.t # Testing Net::Ping 2.55, Perl 5.016000, C:\strawberry160\perl\bin\perl.exe t/000_load.t .......... ok # Checking icmp t/001_new.t ........... ok t/010_pingecho.t ...... ok # Failed test 'Missing Net::Ping::External handled correctly' # at t/020_external.t line 29. # 'getnameinfo() failed - The requested name is valid and was found in the database, but it does not have the correct associated data being resolved for. at t/020_external.t line 26. # doesn't match '(?^:Protocol "external" not supported on your system: Net::Ping::External not found)' # Looks like you failed 1 test of 5. t/020_external.t ...... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/5 subtests (less 2 skipped subtests: 2 okay) getnameinfo() failed - The requested name is valid and was found in the database, but it does not have the correct associated data being resolved for. at t/200_ping_tcp.t line 38. # Looks like you planned 13 tests but ran 2. # Looks like your test exited with 255 just after 2. t/200_ping_tcp.t ...... Dubious, test returned 255 (wstat 65280, 0xff00) Failed 11/13 subtests getnameinfo() failed - The requested name is valid and was found in the database, but it does not have the correct associated data being resolved for. at t/250_ping_hires.t line 45. # Looks like you planned 8 tests but ran 6. # Looks like your test exited with 255 just after 6. t/250_ping_hires.t .... Dubious, test returned 255 (wstat 65280, 0xff00) Failed 2/8 subtests t/300_ping_stream.t ... skipped: loopback tcp echo service is off (No connection could be made because the target machine actively refused it.) getnameinfo() failed - The requested name is valid and was found in the database, but it does not have the correct associated data being resolved for. at t/400_ping_syn.t line 80. # Looks like you planned 17 tests but ran 3. # Looks like your test exited with 255 just after 3. t/400_ping_syn.t ...... Dubious, test returned 255 (wstat 65280, 0xff00) Failed 14/17 subtests getnameinfo() failed - The requested name is valid and was found in the database, but it does not have the correct associated data being resolved for. at t/410_syn_host.t line 82. # Looks like you planned 19 tests but ran 3. # Looks like your test exited with 255 just after 3. t/410_syn_host.t ...... Dubious, test returned 255 (wstat 65280, 0xff00) Failed 16/19 subtests Test Summary Report ------------------- t/020_external.t (Wstat: 256 Tests: 5 Failed: 1) Failed test: 5 Non-zero exit status: 1 t/200_ping_tcp.t (Wstat: 65280 Tests: 2 Failed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 13 tests but ran 2. t/250_ping_hires.t (Wstat: 65280 Tests: 6 Failed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 8 tests but ran 6. t/400_ping_syn.t (Wstat: 65280 Tests: 3 Failed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 17 tests but ran 3. t/410_syn_host.t (Wstat: 65280 Tests: 3 Failed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 19 tests but ran 3. Files=21, Tests=83, 28 wallclock secs ( 0.12 usr + 0.27 sys = 0.39 CPU) Result: FAIL Failed 5/21 test programs. 1/83 subtests failed. dmake: Error code 255, while making 'test_dynamic'
Tests fail only on Windows XP and pass on Windows 7. -- Alexandr Ciornii, http://chorny.net
Note: when installing perl, these tests are disabled, so tests pass. It breaks following distributions: VOLKENING/Bio-CIPRES-0.003001.tar.gz COSIMO/Net-Prober-0.15.tar.gz IMAGO/Regru-API-0.046.tar.gz breaks Test::Ping too, but it has problems on Windows anyway. -- Alexandr Ciornii, http://chorny.net
Unfortunately I don't have any Windows XP system to test, only Win8. We need an external pull request for this test. See my new rt118526-external branch. According to the error message you got the error should have been caught. -- Reini Urban
This error was fixed by https://github.com/rurban/Net-Ping/pull/6 -- Alexandr Ciornii, http://chorny.net