summaryrefslogtreecommitdiffstats
path: root/tests/cmdMZ.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2002-07-04 21:47:58 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2002-07-04 21:47:58 (GMT)
commitb05eb1aea27f4e2d0ab6b03c30e1c1afd6929785 (patch)
tree5ff0c6968c7af967456514a7690aea595c2d15cd /tests/cmdMZ.test
parentcc452c5a406621d17a10583834ac95403805bcec (diff)
downloadtcl-b05eb1aea27f4e2d0ab6b03c30e1c1afd6929785.zip
tcl-b05eb1aea27f4e2d0ab6b03c30e1c1afd6929785.tar.gz
tcl-b05eb1aea27f4e2d0ab6b03c30e1c1afd6929785.tar.bz2
More fixing of writable-current-dir assumption. [Bug 575824]
Diffstat (limited to 'tests/cmdMZ.test')
-rw-r--r--tests/cmdMZ.test11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/cmdMZ.test b/tests/cmdMZ.test
index cf7a1a9..f0593b0 100644
--- a/tests/cmdMZ.test
+++ b/tests/cmdMZ.test
@@ -11,7 +11,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: cmdMZ.test,v 1.10 2002/07/01 07:52:02 dgp Exp $
+# RCS: @(#) $Id: cmdMZ.test,v 1.11 2002/07/04 21:47:59 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -35,14 +35,15 @@ test cmdMZ-1.4 {Tcl_PwdObjCmd: failure} {unixOnly notLinux} {
# We don't want this test to run on Linux because they do a
# permissions caching trick which causes this to fail. The
# caching is incorrect, but we have no control over that.
- file delete -force foo
- file mkdir foo
+ set foodir [file join [temporaryDirectory] foo]
+ file delete -force $foodir
+ file mkdir $foodir
set cwd [pwd]
- cd foo
+ cd $foodir
file attr . -permissions 000
set result [list [catch {pwd} msg] $msg]
cd $cwd
- file delete -force foo
+ file delete -force $foodir
set result
} {1 {error getting working directory name: permission denied}}