summaryrefslogtreecommitdiffstats
path: root/tests/fileName.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2009-08-21 18:31:37 (GMT)
committerdgp <dgp@users.sourceforge.net>2009-08-21 18:31:37 (GMT)
commita2bdafd99ae6e5df62b2c941de3dd77949fa50b3 (patch)
treef2bb42c757d3064461a2348321a462b4b224e0eb /tests/fileName.test
parentfa5ee967b1643fdd114d19a71f4d12e10a2b4b54 (diff)
downloadtcl-a2bdafd99ae6e5df62b2c941de3dd77949fa50b3.zip
tcl-a2bdafd99ae6e5df62b2c941de3dd77949fa50b3.tar.gz
tcl-a2bdafd99ae6e5df62b2c941de3dd77949fa50b3.tar.bz2
regression tests
Diffstat (limited to 'tests/fileName.test')
-rw-r--r--tests/fileName.test30
1 files changed, 29 insertions, 1 deletions
diff --git a/tests/fileName.test b/tests/fileName.test
index 591f8a4..8986cc2 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.51.8.8 2009/08/19 17:29:06 dgp Exp $
+# RCS: @(#) $Id: fileName.test,v 1.51.8.9 2009/08/21 18:31:37 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -1642,6 +1642,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]