diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2018-10-17 19:55:17 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2018-10-17 19:55:17 (GMT) |
commit | 2881b5c3df298c14a851a8bed7d618a5761f4274 (patch) | |
tree | 5fe478b0a9054e94c7cb8bf2f29e0bc7f32b72aa /tests/fCmd.test | |
parent | e1196c53f256897cfdf6549eae9bdd88eb1aa930 (diff) | |
parent | e0209e39ea32294ee016d240fd1dfe9411469832 (diff) | |
download | tcl-2881b5c3df298c14a851a8bed7d618a5761f4274.zip tcl-2881b5c3df298c14a851a8bed7d618a5761f4274.tar.gz tcl-2881b5c3df298c14a851a8bed7d618a5761f4274.tar.bz2 |
Fix test-cases running on Windows 10: [string index $tcl_platform(osVersion) 0] doesn't give the correct answer then.
Also backport genStubs.tcl from 8.7: The "deprecated" mark is not used in Tcl 8.6, but it is used by Tk 8.7 when doing "make genstubs" against Tcl 8.6.
Diffstat (limited to 'tests/fCmd.test')
-rw-r--r-- | tests/fCmd.test | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/fCmd.test b/tests/fCmd.test index c8264b2..11ab79e 100644 --- a/tests/fCmd.test +++ b/tests/fCmd.test @@ -65,11 +65,10 @@ if {[testConstraint unix]} { # Also used in winFCmd... if {[testConstraint win]} { - set major [string index $tcl_platform(osVersion) 0] - if {[testConstraint nt] && $major > 4} { - if {$major > 5} { + if {[testConstraint nt] && $::tcl_platform(osVersion) >= 5.0} { + if {$::tcl_platform(osVersion) >= 6.0} { testConstraint winVista 1 - } elseif {$major == 5} { + } else { testConstraint win2000orXP 1 } } @@ -78,7 +77,7 @@ if {[testConstraint win]} { testConstraint darwin9 [expr { [testConstraint unix] && $tcl_platform(os) eq "Darwin" - && [package vsatisfies 1.$tcl_platform(osVersion) 1.9] + && [package vsatisfies 1.$::tcl_platform(osVersion) 1.9] }] testConstraint notDarwin9 [expr {![testConstraint darwin9]}] @@ -2309,7 +2308,7 @@ test fCmd-27.6 {TclFileAttrsCmd - setting more than one option} -setup { if { [testConstraint win] && - ([string index $tcl_platform(osVersion) 0] < 5 + ($::tcl_platform(osVersion) < 5.0 || [lindex [file system [temporaryDirectory]] 1] ne "NTFS") } then { testConstraint linkDirectory 0 |