summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-12-15 11:37:29 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-12-15 11:37:29 (GMT)
commit00280a4727b6e400151a977c9f84270a6938c456 (patch)
tree04622bcd5a03636ec1be8b9350132028f17c16ed /tests
parentc899e46a97660609d9f6d36314e570809dad14e6 (diff)
downloadtcl-00280a4727b6e400151a977c9f84270a6938c456.zip
tcl-00280a4727b6e400151a977c9f84270a6938c456.tar.gz
tcl-00280a4727b6e400151a977c9f84270a6938c456.tar.bz2
Protect fCmd-28.8 with constaint win10
Diffstat (limited to 'tests')
-rw-r--r--tests/fCmd.test19
1 files changed, 11 insertions, 8 deletions
diff --git a/tests/fCmd.test b/tests/fCmd.test
index efffe99..ab0d21d 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 win2000orXP 0
+testConstraint win10 0
# Don't know how to determine this constraint correctly
testConstraint notNetworkFilesystem 0
testConstraint reg 0
@@ -66,11 +67,13 @@ if {[testConstraint unix]} {
# Also used in winFCmd...
if {[testConstraint win]} {
if {[testConstraint nt] && $::tcl_platform(osVersion) >= 5.0} {
- if {$::tcl_platform(osVersion) >= 6.0} {
- testConstraint winVista 1
- } else {
- testConstraint win2000orXP 1
- }
+ if {$::tcl_platform(osVersion) >= 10.0} {
+ testConstraint win10 1
+ } elseif {$::tcl_platform(osVersion) >= 6.0} {
+ testConstraint winVista 1
+ } else {
+ testConstraint win2000orXP 1
+ }
}
}
@@ -2355,13 +2358,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