diff options
author | vincentdarley <vincentdarley> | 2006-03-18 18:15:10 (GMT) |
---|---|---|
committer | vincentdarley <vincentdarley> | 2006-03-18 18:15:10 (GMT) |
commit | a1d41e6ab15a8040828a7984500a360d0b483f9d (patch) | |
tree | 5d117164808bc7ff934146c9e50d11f2fd5df143 /tests/tcltest.test | |
parent | 0724ad11901b1b93fd79ec948eb4997cbbee73c3 (diff) | |
download | tcl-a1d41e6ab15a8040828a7984500a360d0b483f9d.zip tcl-a1d41e6ab15a8040828a7984500a360d0b483f9d.tar.gz tcl-a1d41e6ab15a8040828a7984500a360d0b483f9d.tar.bz2 |
fix to file writeable on windows
Diffstat (limited to 'tests/tcltest.test')
-rwxr-xr-x | tests/tcltest.test | 5 |
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} } } |