summaryrefslogtreecommitdiffstats
path: root/tests/winFile.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-16 15:03:08 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-16 15:03:08 (GMT)
commit69875ee99d8bc12504eab91f901bd8bfc9272afa (patch)
tree23cbcdb23da0a847ebe6b7b2cabe52e6a810d38b /tests/winFile.test
parentfd320780c7e171b3b843e654c982a3f5199aebd5 (diff)
downloadtcl-69875ee99d8bc12504eab91f901bd8bfc9272afa.zip
tcl-69875ee99d8bc12504eab91f901bd8bfc9272afa.tar.gz
tcl-69875ee99d8bc12504eab91f901bd8bfc9272afa.tar.bz2
Fix env.test when running under wine on Linux.
Mark other tests with "notWine", which fail currently under wine
Diffstat (limited to 'tests/winFile.test')
-rw-r--r--tests/winFile.test7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/winFile.test b/tests/winFile.test
index d8d1b7c..2c0988a 100644
--- a/tests/winFile.test
+++ b/tests/winFile.test
@@ -24,6 +24,7 @@ testConstraint notNTFS 0
if {[testConstraint testvolumetype]} {
testConstraint notNTFS [expr {[testvolumetype] eq "NTFS"}]
}
+testConstraint notWine [expr {$::tcl_platform(platform) ne "windows" || ![info exists ::env(TRAVIS_OS_NAME)] || ![string match linux $::env(TRAVIS_OS_NAME)]}]
test winFile-1.1 {TclpGetUserHome} -constraints {win} -body {
glob ~nosuchuser
@@ -150,7 +151,7 @@ if {[testConstraint win]} {
test winFile-4.0 {
Enhanced NTFS user/group permissions: test no acccess
} -constraints {
- win notNTFS
+ win notNTFS notWine
} -setup {
set owner [getuser $fname]
set user $::env(USERDOMAIN)\\$::env(USERNAME)
@@ -165,7 +166,7 @@ test winFile-4.0 {
test winFile-4.1 {
Enhanced NTFS user/group permissions: test readable only
} -constraints {
- win notNTFS
+ win notNTFS notWine
} -setup {
set user $::env(USERDOMAIN)\\$::env(USERNAME)
} -body {
@@ -176,7 +177,7 @@ test winFile-4.1 {
test winFile-4.2 {
Enhanced NTFS user/group permissions: test writable only
} -constraints {
- win notNTFS
+ win notNTFS notWine
} -setup {
set user $::env(USERDOMAIN)\\$::env(USERNAME)
} -body {