summaryrefslogtreecommitdiffstats
path: root/tests/fileSystem.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fileSystem.test')
-rw-r--r--tests/fileSystem.test11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/fileSystem.test b/tests/fileSystem.test
index f015270..9a4f1c2 100644
--- a/tests/fileSystem.test
+++ b/tests/fileSystem.test
@@ -132,7 +132,6 @@ file delete -force dir2.link
file delete -force link.file dir.link
removeFile [file join dir.file inside.file]
removeDirectory dir.file
-removeFile gorp.file
test filesystem-2.0 {new native path} {unixOnly} {
foreach f [lsort [glob -nocomplain /usr/bin/c*]] {
@@ -406,12 +405,12 @@ test filesystem-7.1 {load from vfs} {win} {
test filesystem-7.2 {cross-filesystem copy from vfs maintains mtime} {
set dir [pwd]
- cd [file dirname [info script]]
- set origtime [file mtime [info script]]
- set dir [pwd]
+ cd [tcltest::temporaryDirectory]
+ # We created this file several tests ago.
+ set origtime [file mtime gorp.file]
testsimplefilesystem 1
file delete -force theCopy
- file copy simplefs:/[file tail [info script]] theCopy
+ file copy simplefs:/gorp.file theCopy
testsimplefilesystem 0
set newtime [file mtime theCopy]
file delete theCopy
@@ -419,6 +418,8 @@ test filesystem-7.2 {cross-filesystem copy from vfs maintains mtime} {
expr {$origtime == $newtime}
} {1}
+removeFile gorp.file
+
cleanupTests
}
namespace delete ::tcl::test::fileSystem