diff options
author | mdejong <mdejong> | 2002-03-11 21:00:06 (GMT) |
---|---|---|
committer | mdejong <mdejong> | 2002-03-11 21:00:06 (GMT) |
commit | 09e7f66cd8018342199fc203e82adc59c902efa3 (patch) | |
tree | 6876bd571cd8d08cb5a526c3715b821c5c95d264 /library/tcltest/tcltest.tcl | |
parent | 70776b7083ad2d54978020376eeb1ea072067931 (diff) | |
download | tcl-09e7f66cd8018342199fc203e82adc59c902efa3.zip tcl-09e7f66cd8018342199fc203e82adc59c902efa3.tar.gz tcl-09e7f66cd8018342199fc203e82adc59c902efa3.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.
Diffstat (limited to 'library/tcltest/tcltest.tcl')
-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 \ |