summaryrefslogtreecommitdiffstats
path: root/tests/cmdAH.test
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley@noemail.net>2003-09-16 16:06:33 (GMT)
committervincentdarley <vincentdarley@noemail.net>2003-09-16 16:06:33 (GMT)
commit5a5ba45cd8d1bcfb290fe429bfaabaec26b43d8a (patch)
tree70a0a95363c0d2a1b9426817e4a437242ebc8364 /tests/cmdAH.test
parent4e199be56d984028f3b35de6df86084f63734fd5 (diff)
downloadtcl-5a5ba45cd8d1bcfb290fe429bfaabaec26b43d8a.zip
tcl-5a5ba45cd8d1bcfb290fe429bfaabaec26b43d8a.tar.gz
tcl-5a5ba45cd8d1bcfb290fe429bfaabaec26b43d8a.tar.bz2
test suite fix for AFS
FossilOrigin-Name: 88d1d3d98727e28cab4f15dd881fd412a587b344
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 /