summaryrefslogtreecommitdiffstats
path: root/tests/socket.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2012-05-31 09:04:03 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2012-05-31 09:04:03 (GMT)
commit19090f685f5610f567baac9ded8a7495631ca63c (patch)
tree887ebc198d7f50f85d5330b06811f7fff59c1a8d /tests/socket.test
parent161a43e685132ef00e715c16fe1cf9c6a33e0a6d (diff)
downloadtcl-19090f685f5610f567baac9ded8a7495631ca63c.zip
tcl-19090f685f5610f567baac9ded8a7495631ca63c.tar.gz
tcl-19090f685f5610f567baac9ded8a7495631ca63c.tar.bz2
Prevented intermittent test failure due to race condition.
Diffstat (limited to 'tests/socket.test')
-rw-r--r--tests/socket.test1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/socket.test b/tests/socket.test
index d88eb65..9f1cc78 100644
--- a/tests/socket.test
+++ b/tests/socket.test
@@ -1696,6 +1696,7 @@ test socket_$af-13.1 {Testing use of shared socket between two threads} -body {
set i 0
vwait x
close $f
+ thread::wait
}]]
set port [thread::send $serverthread {set listen}]
set s [socket $localhost $port]