diff options
author | hobbs <hobbs@noemail.net> | 2004-05-04 22:12:47 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2004-05-04 22:12:47 (GMT) |
commit | 5157f07f18ec0f519448820db41e4bc606b01d98 (patch) | |
tree | 756a840a2b0517b74f7b921a1a39902abfd6f6bf /tests/fileName.test | |
parent | 978b9e9e8577c6ec51e0070d29afdce7bd47384f (diff) | |
download | tcl-5157f07f18ec0f519448820db41e4bc606b01d98.zip tcl-5157f07f18ec0f519448820db41e4bc606b01d98.tar.gz tcl-5157f07f18ec0f519448820db41e4bc606b01d98.tar.bz2 |
* tests/fileName.test (filename-12.9): use C:/ instead of the
first item in file volumes - that's usually A:/, which for most
will have nothing in it.
FossilOrigin-Name: 063ed90d368f2428033caaebd92396d2fb724edd
Diffstat (limited to 'tests/fileName.test')
-rw-r--r-- | tests/fileName.test | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/fileName.test b/tests/fileName.test index db431fc..19b08ec 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.4 2004/03/09 12:56:59 vincentdarley Exp $ +# RCS: @(#) $Id: fileName.test,v 1.30.2.5 2004/05/04 22:12:49 hobbs Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -1669,7 +1669,9 @@ test filename-12.8 {globbing at filesystem root} {unixOnly} { set equal } {1} test filename-12.9 {globbing at filesystem root} {winOnly} { - set dir [lindex [glob -type d [lindex [file volumes] 0]*] 0] + # Can't grab just anything from 'file volumes' because we need a dir + # that has subdirs - assume that C:/ exists across Windows machines. + set dir [lindex [glob -type d C:/*] 0] set first [string range $dir 0 3] set res1 [glob -nocomplain ${first}*] set res2 [glob -path $first *] |