Skip Menu |

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

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

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

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



Subject: Test failures on Windows
Using the latest CPAN distro (2.41) I have three test failures on Windows 7 x64 with VC++ 2010 (running 'as Administrator' -- with UAC switched off): D:\temp\Net-Ping-2.41>perl -Mblib t/200_ping_tcp.t 1..13 ok 1 - use Net::Ping; ok 2 - new() worked isa Net::Ping ok 3 - Test on the default port ok 4 ok 5 - Test localhost on the web port not ok 6 - Can't reach 172.29.249.249 # Failed test 'Can't reach 172.29.249.249' # at t/200_ping_tcp.t line 48. # got: '1' # expected: '0' ok 7 - Can ping www.geocities.com ok 8 - Can ping www.wisc.edu ok 9 - Can ping www.freeservers.com ok 10 - Can ping ftp.freeservers.com ok 11 - Can ping yahoo.com ok 12 - Can ping www.yahoo.com ok 13 - Can ping www.about.com # Looks like you failed 1 test of 13. D:\temp\Net-Ping-2.41>perl -Mblib t/400_ping_syn.t 1..17 ok 1 - use Net::Ping; ok 2 - new() worked isa Net::Ping ok 3 - valid port ok 4 - Can reach www.about.com. [] ok 5 - Can reach yahoo.com. [] ok 6 - Can reach 172.29.249.249 [] ok 7 - Can reach www.geocities.com. [] ok 8 - Can reach www.microsoft.com. [] ok 9 - Can reach www.yahoo.com. [] ok 10 - Can reach www.freeservers.com. [] ok 11 - supposed to be up: http://www.about.com./ ok 12 - supposed to be up: http://yahoo.com./ not ok 13 - supposed to be up: http://172.29.249.249/ # Failed test 'supposed to be up: http://172.29.249.249/' # at t/400_ping_syn.t line 85. # got: '0' # expected: '1' ok 14 - supposed to be up: http://www.geocities.com./ ok 15 - supposed to be up: http://www.microsoft.com./ ok 16 - supposed to be up: http://www.yahoo.com./ ok 17 - supposed to be up: http://www.freeservers.com./ # Looks like you failed 1 test of 17. D:\temp\Net-Ping-2.41>perl -Mblib t/410_syn_host.t 1..19 ok 1 - use Net::Ping; ok 2 - new() worked isa Net::Ping ok 3 - vaid port ok 4 - Can reach yahoo.com. [] ok 5 - Can reach www.yahoo.com. [] ok 6 - Can reach 127.0.0.1 [] ok 7 - Can reach www.microsoft.com. [] ok 8 - Can reach www.freeservers.com. [] ok 9 - Can reach 172.29.249.249 [] ok 10 - Can reach www.geocities.com. [] ok 11 - Can reach www.about.com. [] ok 12 - supposed to be up: http://127.0.0.1/ [] not ok 13 - supposed to be up: http://172.29.249.249/ [] # Failed test 'supposed to be up: http://172.29.249.249/ []' # at t/410_syn_host.t line 88. # got: '0' # expected: '1' ok 14 - supposed to be up: http://www.about.com./ [] ok 15 - supposed to be up: http://www.freeservers.com./ [] ok 16 - supposed to be up: http://www.geocities.com./ [] ok 17 - supposed to be up: http://www.microsoft.com./ [] ok 18 - supposed to be up: http://www.yahoo.com./ [] ok 19 - supposed to be up: http://yahoo.com./ [] # Looks like you failed 1 test of 19.
I have same failure, on Windows and Linux. Tested tcp ping using hping and it receives answer: $ sudo hping3 -S -p 80 172.29.249.249 HPING 172.29.249.249 (eth0 172.29.249.249): S set, 40 headers + 0 data bytes len=46 ip=172.29.249.249 ttl=64 id=49308 sport=80 flags=SA seq=0 win=65535 rtt=12.6 ms len=46 ip=172.29.249.249 ttl=64 id=49309 sport=80 flags=SA seq=1 win=65535 rtt=3.8 ms -- Alexandr Ciornii, http://chorny.net
Subject: Re: [rt.cpan.org #84085] Test failures on Windows
Date: Thu, 11 Dec 2014 14:08:41 -0700
To: bug-Net-Ping [...] rt.cpan.org
From: Rob Brown <bbb [...] cpan.org>
Is this because of IPv6? Or what is causing this failure? Can you provide a patch to repair it? On Thu, Dec 11, 2014 at 10:32 AM, Alexandr Ciornii via RT < bug-Net-Ping@rt.cpan.org> wrote: Show quoted text
> Queue: Net-Ping > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=84085 > > > I have same failure, on Windows and Linux. Tested tcp ping using hping and > it receives answer: > > $ sudo hping3 -S -p 80 172.29.249.249 > HPING 172.29.249.249 (eth0 172.29.249.249): S set, 40 headers + 0 data > bytes > len=46 ip=172.29.249.249 ttl=64 id=49308 sport=80 flags=SA seq=0 win=65535 > rtt=12.6 ms > len=46 ip=172.29.249.249 ttl=64 id=49309 sport=80 flags=SA seq=1 win=65535 > rtt=3.8 ms > > > > -- > Alexandr Ciornii, http://chorny.net > >
On Thu Dec 11 16:08:53 2014, BBB wrote: Show quoted text
> Is this because of IPv6?
no Show quoted text
> Or what is causing this failure? Can you provide a > patch to repair it?
Possible solution is to skip test if this node can not be pinged with ICMP ping and can be pinged with TCP ping. Of course it will make tests less thorough. Show quoted text
> > On Thu, Dec 11, 2014 at 10:32 AM, Alexandr Ciornii via RT < > bug-Net-Ping@rt.cpan.org> wrote: >
> > Queue: Net-Ping > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=84085 > > > > > I have same failure, on Windows and Linux. Tested tcp ping using hping and > > it receives answer: > > > > $ sudo hping3 -S -p 80 172.29.249.249 > > HPING 172.29.249.249 (eth0 172.29.249.249): S set, 40 headers + 0 data > > bytes > > len=46 ip=172.29.249.249 ttl=64 id=49308 sport=80 flags=SA seq=0 win=65535 > > rtt=12.6 ms > > len=46 ip=172.29.249.249 ttl=64 id=49309 sport=80 flags=SA seq=1 win=65535 > > rtt=3.8 ms > > > > > > > > -- > > Alexandr Ciornii, http://chorny.net > > > >
-- Alexandr Ciornii, http://chorny.net
Relaxed those tests some time ago.