diff options
author | vincentdarley <vincentdarley> | 2003-02-07 11:59:43 (GMT) |
---|---|---|
committer | vincentdarley <vincentdarley> | 2003-02-07 11:59:43 (GMT) |
commit | e0cb0bc6b979e367d80f72a624325d14a50ab6eb (patch) | |
tree | e41d6766997ee6cdc7824d78ae602d9c77e1dd16 /tests/fileSystem.test | |
parent | 17cd8602bc9bd0401d641d50893a409bc660c181 (diff) | |
download | tcl-e0cb0bc6b979e367d80f72a624325d14a50ab6eb.zip tcl-e0cb0bc6b979e367d80f72a624325d14a50ab6eb.tar.gz tcl-e0cb0bc6b979e367d80f72a624325d14a50ab6eb.tar.bz2 |
fix to crashing filesystem test
Diffstat (limited to 'tests/fileSystem.test')
-rw-r--r-- | tests/fileSystem.test | 11 |
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 |