summaryrefslogtreecommitdiffstats
path: root/tests/winFile.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2016-12-15 15:07:56 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2016-12-15 15:07:56 (GMT)
commit5eeecf6181bb38bb87f5d2443489e5dfc875e7a9 (patch)
tree29861e2c7a3ee74bc83a6fe539bd6713afa15bb3 /tests/winFile.test
parent76e88df0f7df0d886ef26fad352fe22ac87df18d (diff)
downloadtcl-5eeecf6181bb38bb87f5d2443489e5dfc875e7a9.zip
tcl-5eeecf6181bb38bb87f5d2443489e5dfc875e7a9.tar.gz
tcl-5eeecf6181bb38bb87f5d2443489e5dfc875e7a9.tar.bz2
Add "file join $grandParentDir tcl8.? library" as possible path for a valid init.tcl.
Some simplifications in use of test restrictions.
Diffstat (limited to 'tests/winFile.test')
-rw-r--r--tests/winFile.test31
1 files changed, 6 insertions, 25 deletions
diff --git a/tests/winFile.test b/tests/winFile.test
index 2c47f5f..0020d6f 100644
--- a/tests/winFile.test
+++ b/tests/winFile.test
@@ -21,23 +21,19 @@ catch [list package require -exact Tcltest [info patchlevel]]
testConstraint testvolumetype [llength [info commands testvolumetype]]
testConstraint notNTFS 0
-testConstraint win2000 0
if {[testConstraint testvolumetype]} {
testConstraint notNTFS [expr {[testvolumetype] eq "NTFS"}]
}
-if {[testConstraint nt] && $::tcl_platform(osVersion) >= 5.0} {
- testConstraint win2000 1
-}
test winFile-1.1 {TclpGetUserHome} -constraints {win} -body {
glob ~nosuchuser
} -returnCodes error -result {user "nosuchuser" doesn't exist}
-test winFile-1.2 {TclpGetUserHome} -constraints {win nt nonPortable} -body {
+test winFile-1.2 {TclpGetUserHome} -constraints {win nonPortable} -body {
# The administrator account should always exist.
glob ~administrator
} -match glob -result *
-test winFile-1.4 {TclpGetUserHome} {win nt nonPortable} {
+test winFile-1.4 {TclpGetUserHome} {win nonPortable} {
catch {glob ~stanton@workgroup}
} {0}
@@ -151,25 +147,10 @@ if {[testConstraint win]} {
close [open $fname w]
}
-test winFile-4.0 {
- Enhanced NTFS user/group permissions: test no acccess
-} -constraints {
- win nt notNTFS win2000
-} -setup {
- set owner [getuser $fname]
- set user $::env(USERDOMAIN)\\$::env(USERNAME)
-} -body {
- # Clean out all well-known ACLs
- catch {cacls $fname /E /R "Everyone"} result
- catch {cacls $fname /E /R $user} result
- catch {cacls $fname /E /R $owner} result
- cacls $fname /E /P $user:N
- test_access $fname 0 0
-} -result {}
test winFile-4.1 {
Enhanced NTFS user/group permissions: test readable only
} -constraints {
- win nt notNTFS
+ win notNTFS
} -setup {
set user $::env(USERDOMAIN)\\$::env(USERNAME)
} -body {
@@ -180,7 +161,7 @@ test winFile-4.1 {
test winFile-4.2 {
Enhanced NTFS user/group permissions: test writable only
} -constraints {
- win nt notNTFS
+ win notNTFS
} -setup {
set user $::env(USERDOMAIN)\\$::env(USERNAME)
} -body {
@@ -192,7 +173,7 @@ test winFile-4.2 {
test winFile-4.3 {
Enhanced NTFS user/group permissions: test read+write
} -constraints {
- win nt notNTFS
+ win notNTFS
} -setup {
set user $::env(USERDOMAIN)\\$::env(USERNAME)
} -body {
@@ -205,7 +186,7 @@ test winFile-4.3 {
test winFile-4.4 {
Enhanced NTFS user/group permissions: test full access
} -constraints {
- win nt notNTFS
+ win notNTFS
} -setup {
set user $::env(USERDOMAIN)\\$::env(USERNAME)
} -body {