summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorhobbs <hobbs>2004-05-04 22:25:50 (GMT)
committerhobbs <hobbs>2004-05-04 22:25:50 (GMT)
commit7aa7d273bd92aa42ff8db0b007538b7619edcc95 (patch)
tree0bae49246f44bd47f986680ce4ffe2e39ad152d0 /tests
parent4b1a1e33963081c4ba6472f189981a395d4d6577 (diff)
downloadtcl-7aa7d273bd92aa42ff8db0b007538b7619edcc95.zip
tcl-7aa7d273bd92aa42ff8db0b007538b7619edcc95.tar.gz
tcl-7aa7d273bd92aa42ff8db0b007538b7619edcc95.tar.bz2
* generic/tclIOUtil.c (Tcl_FSChdir): Work-around crash condition
* tests/winFCmd.test (winFCmd-16.12): triggered when $HOME is volumerelative (ie 'C:').
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 78d85c9..0b1fdf0 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.20.2.3 2003/11/21 16:19:15 dgp Exp $
+# RCS: @(#) $Id: winFCmd.test,v 1.20.2.4 2004/05/04 22:26:00 hobbs Exp $
#
if {[lsearch [namespace children] ::tcltest] == -1} {
@@ -1014,6 +1014,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