summaryrefslogtreecommitdiffstats
path: root/tests/io.test
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2008-04-06 00:37:19 (GMT)
committerKevin B Kenny <kennykb@acm.org>2008-04-06 00:37:19 (GMT)
commitc9585ee6ae26bd31c2fba641f41784c989701ee0 (patch)
treed55d96be8fa197b0d3eabb734ea26080a1d6639c /tests/io.test
parent31377e87452bd20990175e42480d7fdc6089496f (diff)
downloadtcl-c9585ee6ae26bd31c2fba641f41784c989701ee0.zip
tcl-c9585ee6ae26bd31c2fba641f41784c989701ee0.tar.gz
tcl-c9585ee6ae26bd31c2fba641f41784c989701ee0.tar.bz2
* tests/chanio.test (chan-io-53.9):
* tests/io.test (io-53.9): Made test cleanup robust against the possibility of slow process shutdown on Windows. * win/tcl.m4: Added -D_CRT_SECURE_NO_DEPRECATE and -DCRT_NONSTDC_NO_DEPRECATE to the MSVC compilation flags so that the compilation doesn't barf on perfectly reasonable Posix system calls. * win/configure: Manually patched (don't have the right autoconf to hand).
Diffstat (limited to 'tests/io.test')
-rw-r--r--tests/io.test7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/io.test b/tests/io.test
index 488f28b..7489f4f 100644
--- a/tests/io.test
+++ b/tests/io.test
@@ -13,7 +13,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: io.test,v 1.82 2008/04/04 20:14:17 andreas_kupries Exp $
+# RCS: @(#) $Id: io.test,v 1.83 2008/04/06 00:37:19 kennykb Exp $
if {[catch {package require tcltest 2}]} {
puts stderr "Skipping tests in [info script]. tcltest 2 required."
@@ -6976,8 +6976,9 @@ test io-53.9 {CopyData: -size and event interaction, Bug 780533} -setup {
} -cleanup {
close $pipe
rename ::done {}
- removeFile out
- removeFile err
+ after 1000; # Give Windows time to kill the process
+ catch {removeFile out}
+ catch {removeFile err}
catch {unset ::forever}
} -result OK