summaryrefslogtreecommitdiffstats
path: root/tests/fileName.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2009-08-21 18:31:23 (GMT)
committerdgp <dgp@users.sourceforge.net>2009-08-21 18:31:23 (GMT)
commitf9ad150a1ad924f9775cf6d740e1bd5018acc492 (patch)
tree4821f39a65f823720b858af7e6236a23682be2ef /tests/fileName.test
parentc7f320bf237ff2e5d0db130e208490a094f66906 (diff)
downloadtcl-f9ad150a1ad924f9775cf6d740e1bd5018acc492.zip
tcl-f9ad150a1ad924f9775cf6d740e1bd5018acc492.tar.gz
tcl-f9ad150a1ad924f9775cf6d740e1bd5018acc492.tar.bz2
regression tests
Diffstat (limited to 'tests/fileName.test')
-rw-r--r--tests/fileName.test34
1 files changed, 33 insertions, 1 deletions
diff --git a/tests/fileName.test b/tests/fileName.test
index 149eab5..32516a4 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.2.15 2009/08/19 17:27:51 dgp Exp $
+# RCS: @(#) $Id: fileName.test,v 1.30.2.16 2009/08/21 18:31:23 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -2116,6 +2116,38 @@ 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 [file normalize ~/test]
+# The normalized result here is arguably buggy, but consistent
+# with (some?) 8.4.* releases.
+
+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 [file normalize ~/sub/fileName-20.10]
+# The normalized result here is arguably buggy, but consistent
+# with (some?) 8.4.* releases.
+
# cleanup
catch {file delete -force C:/globTest}
cd [temporaryDirectory]