summaryrefslogtreecommitdiffstats
path: root/tests/fileName.test
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley>2004-03-30 09:56:13 (GMT)
committervincentdarley <vincentdarley>2004-03-30 09:56:13 (GMT)
commite7a7c5a2234e5cee662915660923c347b6a5d07d (patch)
tree0dda23cc3cf2cfac164b7213cc7917c68851bede /tests/fileName.test
parent52e2042903c304b57c14e6b17029c7adc014a34e (diff)
downloadtcl-e7a7c5a2234e5cee662915660923c347b6a5d07d.zip
tcl-e7a7c5a2234e5cee662915660923c347b6a5d07d.tar.gz
tcl-e7a7c5a2234e5cee662915660923c347b6a5d07d.tar.bz2
fix to Tcl bug 918320
Diffstat (limited to 'tests/fileName.test')
-rw-r--r--tests/fileName.test16
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/fileName.test b/tests/fileName.test
index be6b6d7..6168f6f 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.38 2004/03/17 18:14:17 das Exp $
+# RCS: @(#) $Id: fileName.test,v 1.39 2004/03/30 09:56:33 vincentdarley Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -1186,6 +1186,20 @@ test filename-12.9 {globbing at filesystem root} {winOnly} {
set equal
} {1}
+test filename-12.10 {globbing with volume relative paths} {winOnly} {
+ set dir [lindex [glob -type d [lindex [file volumes] 0]*] 0]
+ set pwd [pwd]
+ cd [lindex [file volumes] 0]
+ set res1 [glob -nocomplain [string range $dir 2 end]]
+ cd $pwd
+ set res2 [list $dir]
+ set equal [string equal $res1 $res2]
+ if {!$equal} {
+ lappend equal "not equal" $res1 $res2
+ }
+ set equal
+} {1}
+
test filename-13.1 {globbing with brace substitution} {
list [catch {glob globTest/\{\}} msg] $msg
} "0 $globPreResult"