summaryrefslogtreecommitdiff
path: root/ext/Socket/Socket.t
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-09-09 00:24:07 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-09-09 00:24:07 +0000
commit2528d3bc80636e23626826fbc1655948615de50f (patch)
treedfbd3bb03bb66fea728279d10a6b26a76a8ccb15 /ext/Socket/Socket.t
parentfbf77aee4423df41bab4335ba003d27a32454c43 (diff)
downloadperl-2528d3bc80636e23626826fbc1655948615de50f.tar.gz
The Socket tests were wrong: they were assuming too much.
p4raw-id: //depot/perl@11951
Diffstat (limited to 'ext/Socket/Socket.t')
-rwxr-xr-xext/Socket/Socket.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/Socket/Socket.t b/ext/Socket/Socket.t
index 4de061bcfa..94d4fb5599 100755
--- a/ext/Socket/Socket.t
+++ b/ext/Socket/Socket.t
@@ -93,12 +93,12 @@ if((inet_ntoa((unpack_sockaddr_in(pack_sockaddr_in(100,inet_aton("10.250.230.10"
} else {
print "not ok 9\n";
}
-print ((inet_aton("10.10.10.10") eq v10.10.10.10) ? "ok 10\n" : "not ok 10\n");
-print ((inet_ntoa(v10.10.10.10) eq '10.10.10.10') ? "ok 11\n" : "not ok 11\n");
+print ((inet_ntoa(inet_aton("10.20.30.40")) eq "10.20.30.40") ? "ok 10\n" : "not ok 10\n");
+print ((inet_ntoa(v10.20.30.40) eq "10.20.30.40") ? "ok 11\n" : "not ok 11\n");
{
my ($port,$addr) = unpack_sockaddr_in(pack_sockaddr_in(100,v10.10.10.10));
print (($port == 100) ? "ok 12\n" : "not ok 12\n");
- print (($addr eq v10.10.10.10) ? "ok 13\n" : "not ok 13\n");
+ print ((inet_ntoa($addr) eq "10.10.10.10") ? "ok 13\n" : "not ok 13\n");
}
eval { inet_ntoa(v10.20.30.400) };