summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley>2005-03-15 18:07:51 (GMT)
committervincentdarley <vincentdarley>2005-03-15 18:07:51 (GMT)
commit05d93eeba37091d79b51b79a75fd4c0b273b0738 (patch)
treeebd3a61d6d133f269141b77e19702a8b680806cb /tests
parent1d8584189dc0a9e3af8e170fbcac1fe2772b64e9 (diff)
downloadtcl-05d93eeba37091d79b51b79a75fd4c0b273b0738.zip
tcl-05d93eeba37091d79b51b79a75fd4c0b273b0738.tar.gz
tcl-05d93eeba37091d79b51b79a75fd4c0b273b0738.tar.bz2
fix to file norm, file pathtype on windows reserved filenames
Diffstat (limited to 'tests')
-rw-r--r--tests/winFCmd.test51
1 files changed, 50 insertions, 1 deletions
diff --git a/tests/winFCmd.test b/tests/winFCmd.test
index 9992db4..df8698a 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.35 2004/10/07 14:50:23 vincentdarley Exp $
+# RCS: @(#) $Id: winFCmd.test,v 1.36 2005/03/15 18:07:56 vincentdarley Exp $
#
if {[lsearch [namespace children] ::tcltest] == -1} {
@@ -1100,6 +1100,55 @@ test winFCmd-17.1 {Windows bad permissions cd} -constraints win -body {
cd $pwd
unset d dd pwd
+test winFCmd-18.1 {Windows reserved path names} -constraints win -body {
+ file pathtype com1
+} -result "absolute"
+
+test winFCmd-18.1.2 {Windows reserved path names} -constraints win -body {
+ file pathtype com4
+} -result "absolute"
+
+test winFCmd-18.1.3 {Windows reserved path names} -constraints win -body {
+ file pathtype com5
+} -result "relative"
+
+test winFCmd-18.1.4 {Windows reserved path names} -constraints win -body {
+ file pathtype lpt3
+} -result "absolute"
+
+test winFCmd-18.1.5 {Windows reserved path names} -constraints win -body {
+ file pathtype lpt4
+} -result "relative"
+
+test winFCmd-18.2 {Windows reserved path names} -constraints win -body {
+ file pathtype com1:
+} -result "absolute"
+
+test winFCmd-18.3 {Windows reserved path names} -constraints win -body {
+ file pathtype COM1
+} -result "absolute"
+
+test winFCmd-18.4 {Windows reserved path names} -constraints win -body {
+ file pathtype CoM1:
+} -result "absolute"
+
+test winFCmd-18.5 {Windows reserved path names} -constraints win -body {
+ file normalize com1:
+} -result COM1
+
+test winFCmd-18.6 {Windows reserved path names} -constraints win -body {
+ file normalize COM1:
+} -result COM1
+
+test winFCmd-18.7 {Windows reserved path names} -constraints win -body {
+ file normalize cOm1
+} -result COM1
+
+test winFCmd-18.8 {Windows reserved path names} -constraints win -body {
+ file normalize cOm1:
+} -result COM1
+
+
# This block of code used to occur after the "return" call, so I'm
# commenting it out and assuming that this code is still under construction.
#foreach source {tef ted tnf tnd "" nul com1} {