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

[PATCH 5.8.1 @19053] Net::Ping test

Thread Next
From:
Ilya Zakharevich
Date:
March 31, 2003 12:41
Subject:
[PATCH 5.8.1 @19053] Net::Ping test
Message ID:
20030331204053.GA3610@math.berkeley.edu
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 Next


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