diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-06-22 21:48:39 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-06-22 21:48:39 +0000 |
commit | 5cbfe51a4640b24f3ff7d726c33869f60176805c (patch) | |
tree | 11465d28fa78fa8f3625595be5e4163c9abd6372 /lib/Net | |
parent | 153bc26b6a875c4675157b479d77ce90db22d88a (diff) | |
download | perl-5cbfe51a4640b24f3ff7d726c33869f60176805c.tar.gz |
The croak message for nonexistent socket functions may vary.
p4raw-id: //depot/perl@10846
Diffstat (limited to 'lib/Net')
-rw-r--r-- | lib/Net/netent.t | 2 | ||||
-rw-r--r-- | lib/Net/protoent.t | 2 | ||||
-rw-r--r-- | lib/Net/servent.t | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/Net/netent.t b/lib/Net/netent.t index e73122ccc4..125f994962 100644 --- a/lib/Net/netent.t +++ b/lib/Net/netent.t @@ -8,7 +8,7 @@ BEGIN { BEGIN { our $hasne; eval { my @n = getnetbyname "loopback" }; - $hasne = 1 unless $@ && $@ =~ /unimplemented/; + $hasne = 1 unless $@ && $@ =~ /unimplemented|unsupported/i; unless ($hasne) { print "1..0 # Skip: no getnetbyname\n"; exit 0 } use Config; $hasne = 0 unless $Config{'i_netdb'} eq 'define'; diff --git a/lib/Net/protoent.t b/lib/Net/protoent.t index 6c5a1547b3..0c3160157b 100644 --- a/lib/Net/protoent.t +++ b/lib/Net/protoent.t @@ -8,7 +8,7 @@ BEGIN { BEGIN { our $haspe; eval { my @n = getprotobyname "tcp" }; - $haspe = 1 unless $@ && $@ =~ /unimplemented/; + $haspe = 1 unless $@ && $@ =~ /unimplemented|unsupported/i; unless ($haspe) { print "1..0 # Skip: no getprotobyname\n"; exit 0 } use Config; $haspe = 0 unless $Config{'i_netdb'} eq 'define'; diff --git a/lib/Net/servent.t b/lib/Net/servent.t index ef4a04dee8..b476d12b67 100644 --- a/lib/Net/servent.t +++ b/lib/Net/servent.t @@ -8,7 +8,7 @@ BEGIN { BEGIN { our $hasse; eval { my @n = getservbyname "echo", "tcp" }; - $hasse = 1 unless $@ && $@ =~ /unimplemented/; + $hasse = 1 unless $@ && $@ =~ /unimplemented|unsupported/i; unless ($hasse) { print "1..0 # Skip: no getservbyname\n"; exit 0 } use Config; $hasse = 0 unless $Config{'i_netdb'} eq 'define'; |