summaryrefslogtreecommitdiffstats
path: root/tests/cmdAH.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-03-22 14:15:06 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-03-22 14:15:06 (GMT)
commitae6d91316afca4d7295521163352757b570d0e85 (patch)
tree5b77771e69c55c2bb651a5ccdba2337103cdffad /tests/cmdAH.test
parentc5e46efb954d7d3ec9a1594489918053bde2e758 (diff)
parent1aba207fe781bcbb05472aadff385d3a7bc0b819 (diff)
downloadtcl-ae6d91316afca4d7295521163352757b570d0e85.zip
tcl-ae6d91316afca4d7295521163352757b570d0e85.tar.gz
tcl-ae6d91316afca4d7295521163352757b570d0e85.tar.bz2
merge trunk
Diffstat (limited to 'tests/cmdAH.test')
-rw-r--r--tests/cmdAH.test13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/cmdAH.test b/tests/cmdAH.test
index 0517e5f..68a9a49 100644
--- a/tests/cmdAH.test
+++ b/tests/cmdAH.test
@@ -952,6 +952,19 @@ test cmdAH-19.11 {Tcl_FileObjCmd: exists} -constraints {unix notRoot} -setup {
removeFile /tmp/tcl.foo.dir/file
removeDirectory /tmp/tcl.foo.dir
} -result 0
+test cmdAH-19.12 {Bug 3608360: [file exists] mustn't do globbing} -setup {
+ set newdirfile [makeDirectory newdir.file]
+ set cwd [pwd]
+ cd $newdirfile
+ # Content of file is totally unimportant; name is *not*
+ set innocentBystander [makeFile "abc" [file join $newdirfile foo.bar]]
+} -body {
+ list [file exists foo.bar] [file exists *.bar]
+} -cleanup {
+ cd $cwd
+ removeFile $innocentBystander
+ removeDirectory $newdirfile
+} -result {1 0}
# Stat related commands