summaryrefslogtreecommitdiffstats
path: root/tests/winFCmd.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2018-04-30 12:11:14 (GMT)
committerdgp <dgp@users.sourceforge.net>2018-04-30 12:11:14 (GMT)
commit0fc27b893e12027a6b5136fb96ba216b823f43e1 (patch)
treecc128cc85170480876aff6fb04dd277d412b5a8e /tests/winFCmd.test
parentddfce0ed3f91a335d169f6f25cae2da7051d0631 (diff)
downloadtcl-0fc27b893e12027a6b5136fb96ba216b823f43e1.zip
tcl-0fc27b893e12027a6b5136fb96ba216b823f43e1.tar.gz
tcl-0fc27b893e12027a6b5136fb96ba216b823f43e1.tar.bz2
Contain platform-specific things in the constraint-controlled parts of the test.
Diffstat (limited to 'tests/winFCmd.test')
-rw-r--r--tests/winFCmd.test5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/winFCmd.test b/tests/winFCmd.test
index b3fd921..1b2b042 100644
--- a/tests/winFCmd.test
+++ b/tests/winFCmd.test
@@ -912,10 +912,11 @@ test winFCmd-12.6.2 {ConvertFileNameFormat: absolute path with drive (in temp fo
catch {file delete -force -- $::env(TEMP)/td1}
} -constraints {win} -body {
createfile $::env(TEMP)/td1 {}
- string tolower [file attributes $::env(TEMP)/td1 -longname]
+ string equal [string tolower [file attributes $::env(TEMP)/td1 -longname]] \
+ [string tolower [file normalize $::env(TEMP)]/td1]]
} -cleanup {
file delete -force -- $::env(TEMP)/td1
-} -result [string tolower [file normalize $::env(TEMP)]/td1]
+} -result 1
test winFCmd-12.7 {ConvertFileNameFormat} {nonPortable win} {
string tolower [file attributes //bisque/tcl/ws -longname]
} {//bisque/tcl/ws}