summaryrefslogtreecommitdiffstats
path: root/tests/fileName.test
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley>2004-02-28 15:46:29 (GMT)
committervincentdarley <vincentdarley>2004-02-28 15:46:29 (GMT)
commit23b1014c0fb8387895fe3b847999ea8b17572bee (patch)
tree2693b71a1de138e4f046069c4ef8a3f85b3113e2 /tests/fileName.test
parent81e076ccf3d8390e2fa2cd46f424277d848a302a (diff)
downloadtcl-23b1014c0fb8387895fe3b847999ea8b17572bee.zip
tcl-23b1014c0fb8387895fe3b847999ea8b17572bee.tar.gz
tcl-23b1014c0fb8387895fe3b847999ea8b17572bee.tar.bz2
more robust tests
Diffstat (limited to 'tests/fileName.test')
-rw-r--r--tests/fileName.test8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/fileName.test b/tests/fileName.test
index ea9f294..fbe016c 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.35 2004/01/21 19:59:33 vincentdarley Exp $
+# RCS: @(#) $Id: fileName.test,v 1.36 2004/02/28 15:46:29 vincentdarley Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -926,7 +926,11 @@ test filename-9.19.2 {Tcl_JoinPath: win} {testsetplatform winOnly} {
[file join {foo\bar}] \
[file join [pwd] {foo\bar}] \
[file join [pwd] [pwd] {foo\bar}]
- string map [list [pwd] pwd] $res
+ set nres {}
+ foreach elt $res {
+ lappend nres [string map [list [pwd] pwd] $elt]
+ }
+ set nres
} {foo/bar pwd/foo/bar pwd/foo/bar}
test filename-9.20 {Tcl_JoinPath: unix} {testsetplatform} {
testsetplatform unix