summaryrefslogtreecommitdiffstats
path: root/tests/fileSystem.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fileSystem.test')
-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