summaryrefslogtreecommitdiffstats
path: root/tests/fCmd.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2002-07-01 07:52:02 (GMT)
committerdgp <dgp@users.sourceforge.net>2002-07-01 07:52:02 (GMT)
commitad1ccfdeba286542f72f1f58a8387d32a66eae80 (patch)
tree4eb1829723d0b43f31aa865b86bf3afa33d292ea /tests/fCmd.test
parent688fa3e8e5fa9917e24ef78bddcbbfae8f20c80c (diff)
downloadtcl-ad1ccfdeba286542f72f1f58a8387d32a66eae80.zip
tcl-ad1ccfdeba286542f72f1f58a8387d32a66eae80.tar.gz
tcl-ad1ccfdeba286542f72f1f58a8387d32a66eae80.tar.bz2
* Updated the instructions on running and adding to the test suite.
Also updated several tests, mostly to correctly create and destroy any temporary files in the [temporaryDirectory] of tcltest.
Diffstat (limited to 'tests/fCmd.test')
-rw-r--r--tests/fCmd.test11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/fCmd.test b/tests/fCmd.test
index 94db157..131ace5 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.15 2002/06/22 04:19:47 dgp Exp $
+# RCS: @(#) $Id: fCmd.test,v 1.16 2002/07/01 07:52:02 dgp Exp $
#
if {[lsearch [namespace children] ::tcltest] == -1} {
@@ -2195,13 +2195,12 @@ test fCmd-28.4 {file link} {hasLinks} {
list [catch {file link -abc b c} msg] $msg
} {1 {bad switch "-abc": must be -symbolic or -hard}}
-catch {file delete -force abc.dir}
-catch {file delete -force abc2.dir}
makeDirectory abc.dir
makeDirectory abc2.dir
makeFile contents abc.file
makeFile contents abc2.file
+cd [temporaryDirectory]
test fCmd-28.5 {file link: source already exists} {linkDirectory} {
list [catch {file link abc.dir abc2.dir} msg] $msg
} {1 {could not create new link "abc.dir": that path already exists}}
@@ -2295,6 +2294,12 @@ test fCmd-28.18 {file link: glob -type d} {linkDirectory} {
} [lsort [list abc.link abc.dir abc2.dir]]
file delete -force abc.link
+cd [workingDirectory]
+
+removeFile abc2.file
+removeFile abc.file
+removeDirectory abc2.dir
+removeDirectory abc.dir
# cleanup
cleanup