diff options
Diffstat (limited to 'ext/Socket/Socket.t')
-rwxr-xr-x | ext/Socket/Socket.t | 6 |
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) }; |