summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorhobbs <hobbs>2004-05-04 22:30:24 (GMT)
committerhobbs <hobbs>2004-05-04 22:30:24 (GMT)
commit3967737bc5402ae38fa82c9c8bc95d314b35cab9 (patch)
treefbd6f300c2b4126ec30fb7cebdceee71e74e1c45 /tests
parent2742ad43c8f87f43b1ede78734ded19ce09c89b5 (diff)
downloadtcl-3967737bc5402ae38fa82c9c8bc95d314b35cab9.zip
tcl-3967737bc5402ae38fa82c9c8bc95d314b35cab9.tar.gz
tcl-3967737bc5402ae38fa82c9c8bc95d314b35cab9.tar.bz2
* tests/winFCmd.test (winFCmd-16.12): test volumerelative $HOME
Diffstat (limited to 'tests')
-rw-r--r--tests/winFCmd.test11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/winFCmd.test b/tests/winFCmd.test
index 6fc58a8..d118e27 100644
--- a/tests/winFCmd.test
+++ b/tests/winFCmd.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: winFCmd.test,v 1.26 2004/01/21 19:59:34 vincentdarley Exp $
+# RCS: @(#) $Id: winFCmd.test,v 1.27 2004/05/04 22:30:24 hobbs Exp $
#
if {[lsearch [namespace children] ::tcltest] == -1} {
@@ -1028,6 +1028,15 @@ test winFCmd-16.11 {Windows file normalization} {pcOnly cdrom} {
# Must not crash
set result "no crash"
} {no crash}
+test winFCmd-16.12 {Windows file normalization} {pcOnly} {
+ set oldhome ""
+ catch {set oldhome $::env(HOME)}
+ set ::env(HOME) ${d}:
+ cd
+ set result [pwd]; # <- Must not crash
+ set ::env(HOME) $oldhome
+ set result
+} ${d}:/
cd $pwd
unset d dd pwd