summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2008-04-06 00:52:09 (GMT)
committerKevin B Kenny <kennykb@acm.org>2008-04-06 00:52:09 (GMT)
commit6bdb3d6484f629725b9eaf6638099976ad8717c7 (patch)
tree4a42b0741ff400d2bcb762503fad51d5698da6c9 /tests
parentb38bba3aea186cf7f05e45334a96afe25078da16 (diff)
downloadtcl-6bdb3d6484f629725b9eaf6638099976ad8717c7.zip
tcl-6bdb3d6484f629725b9eaf6638099976ad8717c7.tar.gz
tcl-6bdb3d6484f629725b9eaf6638099976ad8717c7.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')
-rw-r--r--tests/chanio.test8
-rw-r--r--tests/io.test7
2 files changed, 9 insertions, 6 deletions
diff --git a/tests/chanio.test b/tests/chanio.test
index 027e4c0..d44902d 100644
--- a/tests/chanio.test
+++ b/tests/chanio.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: chanio.test,v 1.3.2.2 2008/04/04 20:13:23 andreas_kupries Exp $
+# RCS: @(#) $Id: chanio.test,v 1.3.2.3 2008/04/06 00:52:09 kennykb Exp $
if {[catch {package require tcltest 2}]} {
chan puts stderr "Skipping tests in [info script]. tcltest 2 required."
@@ -6976,8 +6976,10 @@ test chan-io-53.9 {CopyData: -size and event interaction, Bug 780533} -setup {
} -cleanup {
chan close $pipe
rename ::done {}
- removeFile out
- removeFile err
+ after 1000; # Allow Windows time to figure out that the
+ # process is gone
+ catch {removeFile out}
+ catch {removeFile err}
catch {unset ::forever}
} -result OK
diff --git a/tests/io.test b/tests/io.test
index 918de33..27ccdbd 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.80.2.2 2008/04/04 20:13:22 andreas_kupries Exp $
+# RCS: @(#) $Id: io.test,v 1.80.2.3 2008/04/06 00:52:10 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