diff options
author | dgp <dgp@users.sourceforge.net> | 2009-08-21 18:32:08 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2009-08-21 18:32:08 (GMT) |
commit | dbfa541f382588345c31954e7bee8d14b7c61764 (patch) | |
tree | 05c8c40fc1a40451cab21dbb8f9a465eaeddcb24 /tests/fileName.test | |
parent | e645a06ed98f083f07698164c56a986e56094fb3 (diff) | |
download | tcl-dbfa541f382588345c31954e7bee8d14b7c61764.zip tcl-dbfa541f382588345c31954e7bee8d14b7c61764.tar.gz tcl-dbfa541f382588345c31954e7bee8d14b7c61764.tar.bz2 |
regression tests
Diffstat (limited to 'tests/fileName.test')
-rw-r--r-- | tests/fileName.test | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/tests/fileName.test b/tests/fileName.test index 88495f2..a35cf86 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.63 2009/08/19 17:30:07 dgp Exp $ +# RCS: @(#) $Id: fileName.test,v 1.64 2009/08/21 18:32:08 dgp Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest 2 @@ -1562,6 +1562,34 @@ test fileName-20.8 {Bug 2806250} -setup { removeDirectory isolate } -result ./~test +test fileName-20.9 {} -setup { + makeFile {} test ~ + set d [makeDirectory isolate] + set savewd [pwd] + cd $d +} -body { + glob -nocomplain -directory ~ test +} -cleanup { + cd $savewd + removeDirectory isolate + removeFile test ~ +} -result ~/test + +test fileName-20.10 {} -setup { + set s [makeDirectory sub ~] + makeFile {} fileName-20.10 $s + set d [makeDirectory isolate] + set savewd [pwd] + cd $d +} -body { + glob -nocomplain -directory ~ -join * fileName-20.10 +} -cleanup { + cd $savewd + removeDirectory isolate + removeFile fileName-20.10 $s + removeDirectory sub ~ +} -result ~/sub/fileName-20.10 + # cleanup catch {file delete -force C:/globTest} cd [temporaryDirectory] |