summaryrefslogtreecommitdiffstats
path: root/tests/fileName.test
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley@noemail.net>2003-10-13 16:48:04 (GMT)
committervincentdarley <vincentdarley@noemail.net>2003-10-13 16:48:04 (GMT)
commit12c479fd0d7d71fb3ad8e6d3ebe06e03386cda23 (patch)
treeccb9c39961e0f152b829dff8a1e6b47fcc6d99a3 /tests/fileName.test
parentdb0cd0ba857592102f7cb78859303390ca18d410 (diff)
downloadtcl-12c479fd0d7d71fb3ad8e6d3ebe06e03386cda23.zip
tcl-12c479fd0d7d71fb3ad8e6d3ebe06e03386cda23.tar.gz
tcl-12c479fd0d7d71fb3ad8e6d3ebe06e03386cda23.tar.bz2
filesystem bug fixes
FossilOrigin-Name: f53be6ca932d75224f711710f48a99d73b1803f4
Diffstat (limited to 'tests/fileName.test')
-rw-r--r--tests/fileName.test19
1 files changed, 18 insertions, 1 deletions
diff --git a/tests/fileName.test b/tests/fileName.test
index de5c655..e75a1b7 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.32 2003/09/30 14:05:45 vincentdarley Exp $
+# RCS: @(#) $Id: fileName.test,v 1.33 2003/10/13 16:48:07 vincentdarley Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -911,6 +911,23 @@ test filename-9.19 {Tcl_JoinPath: win} {testsetplatform} {
[file join C:/blah {C:\foo\bar}] \
[file join C:/blah C:/blah {C:\foo\bar}]
} {C:/foo/bar C:/foo/bar C:/foo/bar}
+test filename-9.19.1 {Tcl_JoinPath: win} {testsetplatform} {
+ testsetplatform win
+ set res {}
+ lappend res \
+ [file join {foo\bar}] \
+ [file join C:/blah {foo\bar}] \
+ [file join C:/blah C:/blah {foo\bar}]
+} {foo/bar C:/blah/foo/bar C:/blah/foo/bar}
+test filename-9.19.2 {Tcl_JoinPath: win} {testsetplatform winOnly} {
+ testsetplatform win
+ set res {}
+ lappend res \
+ [file join {foo\bar}] \
+ [file join [pwd] {foo\bar}] \
+ [file join [pwd] [pwd] {foo\bar}]
+ string map [list [pwd] pwd] $res
+} {foo/bar pwd/foo/bar pwd/foo/bar}
test filename-9.20 {Tcl_JoinPath: unix} {testsetplatform} {
testsetplatform unix
set res {}