From 2528d3bc80636e23626826fbc1655948615de50f Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi Date: Sun, 9 Sep 2001 00:24:07 +0000 Subject: The Socket tests were wrong: they were assuming too much. p4raw-id: //depot/perl@11951 --- ext/Socket/Socket.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/Socket/Socket.t') 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) }; -- cgit v1.2.1