diff options
author | andreas_kupries <akupries@shaw.ca> | 2002-07-08 22:01:39 (GMT) |
---|---|---|
committer | andreas_kupries <akupries@shaw.ca> | 2002-07-08 22:01:39 (GMT) |
commit | 02a6e9afc2955f7bd59537c5a65a6b024a55e796 (patch) | |
tree | 05dac3aea9ec13699409eb69cc4d1cb4b7c1216d /tests/socket.test | |
parent | 1aa8e03a631b9af272dfc0de22e773bf95d37e72 (diff) | |
download | tcl-02a6e9afc2955f7bd59537c5a65a6b024a55e796.zip tcl-02a6e9afc2955f7bd59537c5a65a6b024a55e796.tar.gz tcl-02a6e9afc2955f7bd59537c5a65a6b024a55e796.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.
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 |