summaryrefslogtreecommitdiffstats
path: root/tests/main.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2003-01-31 18:54:32 (GMT)
committerdgp <dgp@users.sourceforge.net>2003-01-31 18:54:32 (GMT)
commitd0cbcca3ff8568a86a10630b2751e6b201fd11ab (patch)
tree50fbbdfdf06e7ffa14ec28550ece94a5f43edc2b /tests/main.test
parent315005f7a00a75e53b65a59669c96b4050a5bf6c (diff)
downloadtcl-d0cbcca3ff8568a86a10630b2751e6b201fd11ab.zip
tcl-d0cbcca3ff8568a86a10630b2751e6b201fd11ab.tar.gz
tcl-d0cbcca3ff8568a86a10630b2751e6b201fd11ab.tar.bz2
* tests/main.test: Stopped main.test from deleting existing file.
Test suite should not delete files that already exist. [Bug 675660]
Diffstat (limited to 'tests/main.test')
-rw-r--r--tests/main.test7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/main.test b/tests/main.test
index f0ad3c0..c005c41 100644
--- a/tests/main.test
+++ b/tests/main.test
@@ -1,6 +1,6 @@
# This file contains a collection of tests for generic/tclMain.c.
#
-# RCS: @(#) $Id: main.test,v 1.11 2003/01/28 17:59:12 dgp Exp $
+# RCS: @(#) $Id: main.test,v 1.12 2003/01/31 18:54:32 dgp Exp $
if {[catch {package require tcltest 2.0.2}]} {
puts stderr "Skipping tests in [info script]. tcltest 2.0.2 required."
@@ -221,7 +221,10 @@ namespace eval ::tcl::test::main {
} -constraints {
exec
} -setup {
- catch {removeFile no-such-file}
+ if {[file exists no-such-file]} {
+ error "Can't run test Tcl_Main-3.1\
+ where a file named \"no-such-file\" exists"
+ }
} -body {
set code [catch {exec [interpreter] no-such-file >& result} result]
set f [open result]