summaryrefslogtreecommitdiffstats
path: root/tests/fCmd.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2006-03-20 11:39:02 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2006-03-20 11:39:02 (GMT)
commitf1afa0eb4e86af95d670b91beb5dba9fe217cb68 (patch)
tree0e2f31a09c1e79b260bbd82b28efc064d40e10bc /tests/fCmd.test
parent6cce2b878fcd6a2c7f85a26e8bde19f7f1ae9909 (diff)
downloadtcl-f1afa0eb4e86af95d670b91beb5dba9fe217cb68.zip
tcl-f1afa0eb4e86af95d670b91beb5dba9fe217cb68.tar.gz
tcl-f1afa0eb4e86af95d670b91beb5dba9fe217cb68.tar.bz2
Clean up tests (mostly constraints relating to testchmod)
Also make the format of the ChangeLog a bit more internally consistent, making it easier to search it for bug numbers, etc.
Diffstat (limited to 'tests/fCmd.test')
-rw-r--r--tests/fCmd.test7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/fCmd.test b/tests/fCmd.test
index e33d678..6d2abc0 100644
--- a/tests/fCmd.test
+++ b/tests/fCmd.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: fCmd.test,v 1.51 2006/03/18 18:15:13 vincentdarley Exp $
+# RCS: @(#) $Id: fCmd.test,v 1.52 2006/03/20 11:39:03 dkf Exp $
#
if {[lsearch [namespace children] ::tcltest] == -1} {
@@ -80,7 +80,10 @@ proc cleanup {args} {
set x [glob -directory $p tf* td*]
}
foreach file $x {
- if {[catch {file delete -force -- $file}]} {
+ if {
+ [catch {file delete -force -- $file}]
+ && [testConstraint testchmod]
+ } then {
catch {openup $file}
catch {file delete -force -- $file}
}