From 02a6e9afc2955f7bd59537c5a65a6b024a55e796 Mon Sep 17 00:00:00 2001 From: andreas_kupries Date: Mon, 8 Jul 2002 22:01:39 +0000 Subject: * tests/socket.test: Fixed bug #578164. The original reason for the was a DNS outage while running the testsuite. Changed [info hostname] to 127.0.0.1 to bypass DNS, knowing that we operate on the local host. --- ChangeLog | 7 +++++++ tests/socket.test | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index ff29f84..b72663e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2002-07-08 Andreas Kupries + + * tests/socket.test: Fixed bug #578164. The original reason for + the was a DNS outage while running the testsuite. Changed [info + hostname] to 127.0.0.1 to bypass DNS, knowing that we operate on + the local host. + 2002-07-08 Don Porter * doc/tcltest.n: Fixed incompatibility in [viewFile]. diff --git a/tests/socket.test b/tests/socket.test index 172a46b..e3b7cc7 100644 --- a/tests/socket.test +++ b/tests/socket.test @@ -10,7 +10,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: socket.test,v 1.24 2002/07/04 20:06:13 andreas_kupries Exp $ +# RCS: @(#) $Id: socket.test,v 1.25 2002/07/08 22:01:41 andreas_kupries Exp $ # Running socket tests with a remote server: # ------------------------------------------ @@ -360,7 +360,7 @@ test socket-2.4 {tcp connection with server interface specified} {socket stdio} set f [open $path(script) w] puts $f { set timer [after 2000 "set x done"] - set f [socket -server accept -myaddr [info hostname] 0] + set f [socket -server accept -myaddr 127.0.0.1 0] proc accept {file addr port} { global x puts "[gets $file]" @@ -377,7 +377,7 @@ test socket-2.4 {tcp connection with server interface specified} {socket stdio} set f [open "|[list $::tcltest::tcltest $path(script)]" r] gets $f x gets $f listen - if {[catch {socket [info hostname] $listen} sock]} { + if {[catch {socket 127.0.0.1 $listen} sock]} { set x $sock } else { puts $sock hello -- cgit v0.12