diff options
author | mdejong <mdejong@noemail.net> | 2002-03-11 21:00:06 (GMT) |
---|---|---|
committer | mdejong <mdejong@noemail.net> | 2002-03-11 21:00:06 (GMT) |
commit | 146cab043ab2c4a5eb97f2f0b2fa93bd02a63b6f (patch) | |
tree | 6876bd571cd8d08cb5a526c3715b821c5c95d264 /library | |
parent | 3f6a256947859be3f3ff3c3e1940c20e4070b8d2 (diff) | |
download | tcl-146cab043ab2c4a5eb97f2f0b2fa93bd02a63b6f.zip tcl-146cab043ab2c4a5eb97f2f0b2fa93bd02a63b6f.tar.gz tcl-146cab043ab2c4a5eb97f2f0b2fa93bd02a63b6f.tar.bz2 |
* library/tcltest/tcltest.tcl (getMatchingFiles): Pass
a proper list to foreach to avoid munging a Windows
patch like D:\Foo\Bar into D:FooBar before the glob.
FossilOrigin-Name: b63d3e197ad8ed749d2e5da822adb8932846258c
Diffstat (limited to 'library')
-rw-r--r-- | library/tcltest/tcltest.tcl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/library/tcltest/tcltest.tcl b/library/tcltest/tcltest.tcl index bca10be..fcc0c62 100644 --- a/library/tcltest/tcltest.tcl +++ b/library/tcltest/tcltest.tcl @@ -13,7 +13,7 @@ # Copyright (c) 2000 by Ajuba Solutions # All rights reserved. # -# RCS: @(#) $Id: tcltest.tcl,v 1.33 2001/09/06 17:51:00 vincentdarley Exp $ +# RCS: @(#) $Id: tcltest.tcl,v 1.34 2002/03/11 21:00:16 mdejong Exp $ # create the "tcltest" namespace for all testing variables and procedures @@ -2806,8 +2806,9 @@ proc tcltest::getMatchingFiles { {searchDirectory ""} } { set matchingFiles {} # Find the matching files in the list of directories and then remove the - # ones that match the skip pattern - foreach directory $searchDirectory { + # ones that match the skip pattern. Passing a list to foreach is required + # so that a patch like D:\Foo\Bar does not get munged into D:FooBar. + foreach directory [list $searchDirectory] { set matchFileList {} foreach match $tcltest::matchFiles { set matchFileList [concat $matchFileList \ |