diff options
author | andreas_kupries <andreas_kupries@noemail.net> | 2002-07-08 22:01:39 (GMT) |
---|---|---|
committer | andreas_kupries <andreas_kupries@noemail.net> | 2002-07-08 22:01:39 (GMT) |
commit | a87312bf53d565e53543c46a014bb60343280193 (patch) | |
tree | 05dac3aea9ec13699409eb69cc4d1cb4b7c1216d /tests/socket.test | |
parent | 4d88da8cd2468d0462888f9f7ba2d05ca9cd1fae (diff) | |
download | tcl-a87312bf53d565e53543c46a014bb60343280193.zip tcl-a87312bf53d565e53543c46a014bb60343280193.tar.gz tcl-a87312bf53d565e53543c46a014bb60343280193.tar.bz2 |
* 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.
FossilOrigin-Name: 00895d7a9ca73974c64d620a68362c141d56f95d
Diffstat (limited to 'tests/socket.test')
-rw-r--r-- | tests/socket.test | 6 |
1 files changed, 3 insertions, 3 deletions
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 |