summaryrefslogtreecommitdiffstats
path: root/tests/socket.test
diff options
context:
space:
mode:
authorrmax <rmax>2010-11-04 21:08:19 (GMT)
committerrmax <rmax>2010-11-04 21:08:19 (GMT)
commit738d3287614a503de943697f3ab692e5c6023f94 (patch)
treee1f6bf520b6ea469c757aa45bc6f829bf2445004 /tests/socket.test
parent9cdb49046244dfbaa23a52939a02512c556cbb01 (diff)
downloadtcl-738d3287614a503de943697f3ab692e5c6023f94.zip
tcl-738d3287614a503de943697f3ab692e5c6023f94.tar.gz
tcl-738d3287614a503de943697f3ab692e5c6023f94.tar.bz2
avoid having to wait for some child processes to time out after all tests have been run
Diffstat (limited to 'tests/socket.test')
-rw-r--r--tests/socket.test5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/socket.test b/tests/socket.test
index c937b7b..7827ce6 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.47 2010/11/04 18:39:31 rmax Exp $
+# RCS: @(#) $Id: socket.test,v 1.48 2010/11/04 21:08:19 rmax Exp $
# Running socket tests with a remote server:
# ------------------------------------------
@@ -1448,6 +1448,7 @@ test socket_$af-12.1 {testing inheritance of server sockets} -setup {
# will be held open for 10 seconds
set f [open $path(script1) w]
puts $f {
+ fileevent stdin readable exit
after 10000 exit
vwait forever
}
@@ -1489,6 +1490,7 @@ test socket_$af-12.2 {testing inheritance of client sockets} -setup {
# will be held open for 20 seconds
set f [open $path(script1) w]
puts $f {
+ fileevent stdin readable exit
after 20000 exit
vwait forever
}
@@ -1559,6 +1561,7 @@ test socket_$af-12.3 {testing inheritance of accepted sockets} -setup {
file delete $path(script2)
set f [open $path(script1) w]
puts $f {
+ fileevent stdin readable exit
after 10000 exit
vwait forever
}