diff options
author | hobbs <hobbs@noemail.net> | 2001-10-12 23:43:10 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2001-10-12 23:43:10 (GMT) |
commit | d79859ed80654d17a73fd1810ffedd9046311bb4 (patch) | |
tree | 8692df8d5c94e7624e50257d729859d26f297933 /tests | |
parent | 336e1e6d46009cef8d118f727a90b57e466c0c26 (diff) | |
download | tcl-d79859ed80654d17a73fd1810ffedd9046311bb4.zip tcl-d79859ed80654d17a73fd1810ffedd9046311bb4.tar.gz tcl-d79859ed80654d17a73fd1810ffedd9046311bb4.tar.bz2 |
* tests/winFCmd.test: differentiated test results for win2k
versus not.
FossilOrigin-Name: 1596109196caffad351054c9cab694c97e33a44e
Diffstat (limited to 'tests')
-rw-r--r-- | tests/winFCmd.test | 34 |
1 files changed, 30 insertions, 4 deletions
diff --git a/tests/winFCmd.test b/tests/winFCmd.test index 97fc2d5..08adf25 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.9 2000/04/10 17:19:06 ericm Exp $ +# RCS: @(#) $Id: winFCmd.test,v 1.9.2.1 2001/10/12 23:43:10 hobbs Exp $ # if {[lsearch [namespace children] ::tcltest] == -1} { @@ -44,6 +44,20 @@ proc cleanup {args} { } } +if {[string equal $tcl_platform(platform) "windows"]} { + if {[string equal $tcl_platform(os) "Windows NT"] \ + && [string equal [string index $tcl_platform(osVersion) 0] "5"]} { + set tcltest::testConstraints(win2000) 1 + set tcltest::testConstraints(notWin2000) 0 + } else { + set tcltest::testConstraints(win2000) 0 + set tcltest::testConstraints(notWin2000) 1 + } +} else { + set tcltest::testConstraints(win2000) 0 + set tcltest::testConstraints(notWin2000) 0 +} + set ::tcltest::testConstraints(cdrom) 0 set ::tcltest::testConstraints(exdev) 0 @@ -188,7 +202,11 @@ test winFCmd-1.12 {TclpRenameFile: errno: EACCES} {pcOnly} { close $fd set msg } {1 EACCES} -test winFCmd-1.13 {TclpRenameFile: errno: EACCES} {pcOnly} { +test winFCmd-1.13 {TclpRenameFile: errno: EACCES} {win2000} { + cleanup + list [catch {testfile mv nul tf1} msg] $msg +} {1 EINVAL} +test winFCmd-1.13.1 {TclpRenameFile: errno: EACCES} {notWin2000} { cleanup list [catch {testfile mv nul tf1} msg] $msg } {1 EACCES} @@ -216,7 +234,11 @@ test winFCmd-1.18 {TclpRenameFile: srcAttr == -1} {pcOnly} { cleanup list [catch {testfile mv tf1 tf2} msg] $msg } {1 ENOENT} -test winFCmd-1.19 {TclpRenameFile: errno == EACCES} {pcOnly} { +test winFCmd-1.19 {TclpRenameFile: errno == EACCES} {win2000} { + cleanup + list [catch {testfile mv nul tf1} msg] $msg +} {1 EINVAL} +test winFCmd-1.19.1 {TclpRenameFile: errno == EACCES} {notWin2000} { cleanup list [catch {testfile mv nul tf1} msg] $msg } {1 EACCES} @@ -361,7 +383,11 @@ test winFCmd-2.7 {TclpCopyFile: errno: EACCES} {95} { close $fd set msg } {1 EACCES} -test winFCmd-2.8 {TclpCopyFile: errno: EACCES} {nt} { +test winFCmd-2.8 {TclpCopyFile: errno: EACCES} {win2000} { + cleanup + list [catch {testfile cp nul tf1} msg] $msg +} {1 EINVAL} +test winFCmd-2.8.1 {TclpCopyFile: errno: EACCES} {nt notWin2000} { cleanup list [catch {testfile cp nul tf1} msg] $msg } {1 EACCES} |