summaryrefslogtreecommitdiffstats
path: root/tests/tcltest.test
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley>2006-03-18 18:15:10 (GMT)
committervincentdarley <vincentdarley>2006-03-18 18:15:10 (GMT)
commita1d41e6ab15a8040828a7984500a360d0b483f9d (patch)
tree5d117164808bc7ff934146c9e50d11f2fd5df143 /tests/tcltest.test
parent0724ad11901b1b93fd79ec948eb4997cbbee73c3 (diff)
downloadtcl-a1d41e6ab15a8040828a7984500a360d0b483f9d.zip
tcl-a1d41e6ab15a8040828a7984500a360d0b483f9d.tar.gz
tcl-a1d41e6ab15a8040828a7984500a360d0b483f9d.tar.bz2
fix to file writeable on windows
Diffstat (limited to 'tests/tcltest.test')
-rwxr-xr-xtests/tcltest.test5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/tcltest.test b/tests/tcltest.test
index 1547a87..7515a80 100755
--- a/tests/tcltest.test
+++ b/tests/tcltest.test
@@ -6,7 +6,7 @@
# Copyright (c) 2000 by Ajuba Solutions
# All rights reserved.
#
-# RCS: @(#) $Id: tcltest.test,v 1.52 2005/05/10 18:35:24 kennykb Exp $
+# RCS: @(#) $Id: tcltest.test,v 1.53 2006/03/18 18:15:13 vincentdarley Exp $
# Note that there are several places where the value of
# tcltest::currentFailure is stored/reset in the -setup/-cleanup
@@ -551,13 +551,14 @@ set notWriteableDir [file join [temporaryDirectory] notwriteable]
makeDirectory notreadable
makeDirectory notwriteable
-switch $tcl_platform(platform) {
+switch -- $tcl_platform(platform) {
"unix" {
file attributes $notReadableDir -permissions 00333
file attributes $notWriteableDir -permissions 00555
}
default {
catch {file attributes $notWriteableDir -readonly 1}
+ catch {testchmod 000 $notWriteableDir}
}
}