diff options
author | vincentdarley <vincentdarley@noemail.net> | 2003-02-07 11:59:43 (GMT) |
---|---|---|
committer | vincentdarley <vincentdarley@noemail.net> | 2003-02-07 11:59:43 (GMT) |
commit | a834d4f235276cae8f2fd1a2b85e47971f8b1d6e (patch) | |
tree | e41d6766997ee6cdc7824d78ae602d9c77e1dd16 /tests/fileSystem.test | |
parent | e7bee902c38b385cc8ac746e1515e670b07d76c6 (diff) | |
download | tcl-a834d4f235276cae8f2fd1a2b85e47971f8b1d6e.zip tcl-a834d4f235276cae8f2fd1a2b85e47971f8b1d6e.tar.gz tcl-a834d4f235276cae8f2fd1a2b85e47971f8b1d6e.tar.bz2 |
fix to crashing filesystem test
FossilOrigin-Name: 63c1460f0bd5505846e171fded0e9abe5e769782
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 |