summaryrefslogtreecommitdiffstats
path: root/tests/cmdAH.test
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley>2003-09-16 16:06:34 (GMT)
committervincentdarley <vincentdarley>2003-09-16 16:06:34 (GMT)
commitb955a84cbccac90a2e86c31ece45610838e409f3 (patch)
tree70a0a95363c0d2a1b9426817e4a437242ebc8364 /tests/cmdAH.test
parente6788bab0b7b55f8cca215f1f569d8716e1c78e8 (diff)
downloadtcl-b955a84cbccac90a2e86c31ece45610838e409f3.zip
tcl-b955a84cbccac90a2e86c31ece45610838e409f3.tar.gz
tcl-b955a84cbccac90a2e86c31ece45610838e409f3.tar.bz2
test suite fix for AFS
Diffstat (limited to 'tests/cmdAH.test')
-rw-r--r--tests/cmdAH.test10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/cmdAH.test b/tests/cmdAH.test
index 31c2cb9..ae38606 100644
--- a/tests/cmdAH.test
+++ b/tests/cmdAH.test
@@ -10,7 +10,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: cmdAH.test,v 1.35 2003/07/21 10:24:25 vincentdarley Exp $
+# RCS: @(#) $Id: cmdAH.test,v 1.36 2003/09/16 16:06:35 vincentdarley Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2.1
@@ -1466,7 +1466,13 @@ test cmdAH-25.1 {Tcl_FileObjCmd: owned} {
list [catch {file owned a b} msg] $msg
} {1 {wrong # args: should be "file owned name"}}
test cmdAH-25.2 {Tcl_FileObjCmd: owned} {
- file owned $gorpfile
+ if {$tcl_platform(platform) eq "unix"} {
+ # Avoid problems with AFS
+ set tmpfile [makeFile "data" touch.me /tmp]
+ file owned $tmpfile
+ } else {
+ file owned $gorpfile
+ }
} 1
test cmdAH-25.3 {Tcl_FileObjCmd: owned} {unixOnly notRoot} {
file owned /