diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-12-16 14:24:12 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-12-16 14:24:12 (GMT) |
commit | 3a35a2dd87fd96c2bd8bce4bf76f9c4d8c4b42a9 (patch) | |
tree | bf4516da509e7d7522bdc2ce5f8de33dcdfab12d /tests/fCmd.test | |
parent | e2c416d5de0aa6541686b6bbc4da418a49622cc1 (diff) | |
parent | 8cf5190b6a9f8233ad8a1ab8af4a592f79d19407 (diff) | |
download | tcl-3a35a2dd87fd96c2bd8bce4bf76f9c4d8c4b42a9.zip tcl-3a35a2dd87fd96c2bd8bce4bf76f9c4d8c4b42a9.tar.gz tcl-3a35a2dd87fd96c2bd8bce4bf76f9c4d8c4b42a9.tar.bz2 |
Merge 8.6
Diffstat (limited to 'tests/fCmd.test')
-rw-r--r-- | tests/fCmd.test | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/tests/fCmd.test b/tests/fCmd.test index a13f0e1..7a5b9fc 100644 --- a/tests/fCmd.test +++ b/tests/fCmd.test @@ -24,6 +24,7 @@ testConstraint testsetplatform [llength [info commands testsetplatform]] testConstraint testchmod [llength [info commands testchmod]] testConstraint winVista 0 testConstraint winXP 0 +testConstraint win10 0 # Don't know how to determine this constraint correctly testConstraint notNetworkFilesystem 0 testConstraint reg 0 @@ -67,9 +68,13 @@ if {[testConstraint unix]} { # Also used in winFCmd... if {[testConstraint win]} { if {$::tcl_platform(osVersion) >= 5.0} { - testConstraint winVista 1 - } else { - testConstraint winXP 1 + if {$::tcl_platform(osVersion) >= 10.0} { + testConstraint win10 1 + } elseif {$::tcl_platform(osVersion) >= 6.0} { + testConstraint winVista 1 + } else { + testConstraint win2000orXP 1 + } } } @@ -2354,13 +2359,13 @@ test fCmd-28.7 {file link: source already exists} -setup { } -returnCodes error -cleanup { cd [workingDirectory] } -result {could not create new link "abc.file": that path already exists} -test fCmd-28.8 {file link} -constraints {linkFile win} -setup { +test fCmd-28.8 {file link} -constraints {linkFile win10} -setup { cd [temporaryDirectory] } -body { file link -symbolic abc.link abc.file -} -returnCodes error -cleanup { +} -cleanup { cd [workingDirectory] -} -result {could not create new link "abc.link" pointing to "abc.file": not a directory} +} -result abc.file test fCmd-28.9 {file link: success with file} -constraints {linkFile} -setup { cd [temporaryDirectory] file delete -force abc.link |