develooper Front page | perl.perl5.porters | Postings from April 2003

Re: [PATCH 5.8.1 @19053] Net::Ping test

Thread Previous | Thread Next
From:
Rob Brown
Date:
April 1, 2003 09:29
Subject:
Re: [PATCH 5.8.1 @19053] Net::Ping test
Message ID:
Pine.LNX.4.44.0304011026050.1835-100000@rox.lehi.roobik.com
Net::Ping does not require any daemons.  the test is intended
to response with a ECONNREFUSED when connecting to 127.0.0.1.
I also do not want to hard code strings (Network unreachable)
to avoid problems with non-English error responses.   (The
direct Errno code is most compatible.)

On Mon, 31 Mar 2003, Ilya Zakharevich wrote:

> The Net::Ping test would not support non-networked environment (I have
> loopback, but *no* daemons running).
> 
> Thanks,
> Ilya
> 
> --- ./lib/Net/Ping/t/190_alarm.t-pre	Tue Mar 11 00:13:06 2003
> +++ ./lib/Net/Ping/t/190_alarm.t	Thu Mar 27 00:04:50 2003
> @@ -49,6 +64,6 @@ eval {
>  ok 1;
>  
>  # Make sure it died for a good excuse
> -ok $@ =~ /alarm works/ or die $@;
> +ok $@ =~ /alarm works|Network\s.*unreachable/i or die $@;
>  
>  alarm 0; # Reset alarm
> 


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About