diff options
author | vincentdarley <vincentdarley> | 2003-04-29 11:45:22 (GMT) |
---|---|---|
committer | vincentdarley <vincentdarley> | 2003-04-29 11:45:22 (GMT) |
commit | 11b0fd8b1b8fa2a430bbd26b1881fdd65fdd6fa6 (patch) | |
tree | 90d2eeb2fccce449fd2543da405b6b0e090677ea /tests/fileName.test | |
parent | 6e2f1dd8faceadc0066b9d5f5cb8136437c736a3 (diff) | |
download | tcl-11b0fd8b1b8fa2a430bbd26b1881fdd65fdd6fa6.zip tcl-11b0fd8b1b8fa2a430bbd26b1881fdd65fdd6fa6.tar.gz tcl-11b0fd8b1b8fa2a430bbd26b1881fdd65fdd6fa6.tar.bz2 |
glob and square brackets fix
Diffstat (limited to 'tests/fileName.test')
-rw-r--r-- | tests/fileName.test | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/fileName.test b/tests/fileName.test index 01b67ef..6247fb9 100644 --- a/tests/fileName.test +++ b/tests/fileName.test @@ -10,7 +10,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: fileName.test,v 1.30 2003/02/12 18:57:51 vincentdarley Exp $ +# RCS: @(#) $Id: fileName.test,v 1.30.2.1 2003/04/29 11:45:24 vincentdarley Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -1333,6 +1333,13 @@ test filename-11.21 {Tcl_GlobCmd} { list [catch {lsort [glob -type d -path $globname *]} msg] $msg } [list 0 [lsort [list $globname]]] +test filename-11.21.1 {Tcl_GlobCmd} { + close [open {[tcl].testremains} w] + set res [list [catch {lsort [glob -path {[tcl]} *]} msg] $msg] + file delete -force {[tcl].testremains} + set res +} [list 0 {{[tcl].testremains}}] + # Get rid of file/dir if it exists, since it will have # been left behind by a previous failed run. if {[file exists $horribleglobname]} { |