summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormax <max@tclers.tk>2014-04-04 08:29:51 (GMT)
committermax <max@tclers.tk>2014-04-04 08:29:51 (GMT)
commit3789b7493dc4baf577d118984bde1ea11cbe66e5 (patch)
tree9761eb95073c5ea31d296291aa702f6744c3b1e0
parent8d1bb4056046a74a3f04fa04992d2eb9d7346776 (diff)
downloadtcl-3789b7493dc4baf577d118984bde1ea11cbe66e5.zip
tcl-3789b7493dc4baf577d118984bde1ea11cbe66e5.tar.gz
tcl-3789b7493dc4baf577d118984bde1ea11cbe66e5.tar.bz2
Revert the tests for bug#97069ea11a from socket.test, because it is hard to test with the socket command in a platform-independent way. As the bug is in tclIOChan.c and should be tested there with a dummy channel driver that can reliably reproduce the situation that suppresses the error message.bug_97069ea11a
-rw-r--r--tests/socket.test33
1 files changed, 0 insertions, 33 deletions
diff --git a/tests/socket.test b/tests/socket.test
index 9ffe506..0ae5abd 100644
--- a/tests/socket.test
+++ b/tests/socket.test
@@ -63,12 +63,6 @@
package require tcltest 2
namespace import -force ::tcltest::*
-# For some tests we need an IP address that never responds.
-# 169.254.0.0 seems to be a good candidate, because it is from a
-# reserved part of the zeroconf address space. Should it ever cause
-# any problems, a different known-unreachable adress can be set here.
-set unreachableIP 169.254.0.0
-
# Some tests require the testthread and exec commands
testConstraint testthread [llength [info commands testthread]]
testConstraint exec [llength [info commands exec]]
@@ -1678,33 +1672,6 @@ test socket-13.1 {Testing use of shared socket between two threads} \
} -cleanup {
removeFile script
} -result {hello 1}
-test socket-14.11.0 {pending [socket -async] and blocking [puts], no listener, no flush} \
- -constraints {socket} \
- -body {
- set sock [socket -async $unreachableIP 42424]
- fconfigure $sock -blocking 0
- puts $sock ok
- fileevent $sock writable {set x 1}
- vwait x
- close $sock
- } -cleanup {
- catch {close $sock}
- unset x
- } -result {host is unreachable} -returnCodes 1
-test socket-14.11.1 {pending [socket -async] and blocking [puts], no listener, flush} \
- -constraints {socket} \
- -body {
- set sock [socket -async $unreachableIP 42424]
- fconfigure $sock -blocking 0
- puts $sock ok
- flush $sock
- fileevent $sock writable {set x 1}
- vwait x
- close $sock
- } -cleanup {
- catch {close $sock}
- unset x
- } -result {host is unreachable} -returnCodes 1
removeFile script1
removeFile script2