-
Notifications
You must be signed in to change notification settings - Fork 559
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Net-Ping to CPAN version 2.75
[DELTA] 2.75 2022-09-01 12:44:03 rurban Minor - Modernized the synopsis (rurban/Net-Ping#31) - Fixed a link in a comment (rurban/Net-Ping#25) META Changes - Remove some TEST_REQUIRES (rurban/Net-Ping#23) Test fixes - Support NO_NETWORK_TESTING=1 (rurban/Net-Ping#24) - Fix non-routable addresses for negative tests (rurban/Net-Ping#24)
- Loading branch information
Showing
10 changed files
with
61 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,11 +4,10 @@ | |
# Based on code written by [email protected] (Radu Greab). | ||
|
||
BEGIN { | ||
if ($ENV{PERL_CORE}) { | ||
unless ($ENV{PERL_TEST_Net_Ping}) { | ||
print "1..0 \# Skip: network dependent test\n"; | ||
exit; | ||
} | ||
if ($ENV{NO_NETWORK_TESTING} || | ||
($ENV{PERL_CORE}) && !$ENV{PERL_TEST_Net_Ping}) { | ||
print "1..0 \# Skip: network dependent test\n"; | ||
exit; | ||
} | ||
unless (eval "require Socket") { | ||
print "1..0 \# Skip: no Socket\n"; | ||
|
@@ -29,7 +28,7 @@ use Test::More tests => 6; | |
BEGIN {use_ok 'Net::Ping'}; | ||
|
||
# Hopefully this is never a routeable host | ||
my $fail_ip = $ENV{NET_PING_FAIL_IP} || "172.29.249.249"; | ||
my $fail_ip = $ENV{NET_PING_FAIL_IP} || "192.0.2.0"; | ||
|
||
eval { | ||
my $timeout = 11; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters