summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley>2003-02-05 12:46:17 (GMT)
committervincentdarley <vincentdarley>2003-02-05 12:46:17 (GMT)
commit630b31eb1db036388d30359b456d2bee9c4e499b (patch)
treef53a4c4b1fd728b04e777777d066726a6a30d9cc /tests
parent3dac6b45f9d6639c9bece03e3ada8d6b196fab12 (diff)
downloadtcl-630b31eb1db036388d30359b456d2bee9c4e499b.zip
tcl-630b31eb1db036388d30359b456d2bee9c4e499b.tar.gz
tcl-630b31eb1db036388d30359b456d2bee9c4e499b.tar.bz2
added regression test for recent bug fix
Diffstat (limited to 'tests')
-rw-r--r--tests/fileSystem.test15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/fileSystem.test b/tests/fileSystem.test
index 3dbaf88..f015270 100644
--- a/tests/fileSystem.test
+++ b/tests/fileSystem.test
@@ -404,6 +404,21 @@ test filesystem-7.1 {load from vfs} {win} {
# The real result of this test is what happens when Tcl exits.
} {ok}
+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]
+ testsimplefilesystem 1
+ file delete -force theCopy
+ file copy simplefs:/[file tail [info script]] theCopy
+ testsimplefilesystem 0
+ set newtime [file mtime theCopy]
+ file delete theCopy
+ cd $dir
+ expr {$origtime == $newtime}
+} {1}
+
cleanupTests
}
namespace delete ::tcl::test::fileSystem