summaryrefslogtreecommitdiffstats
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
parente6788bab0b7b55f8cca215f1f569d8716e1c78e8 (diff)
downloadtcl-b955a84cbccac90a2e86c31ece45610838e409f3.zip
tcl-b955a84cbccac90a2e86c31ece45610838e409f3.tar.gz
tcl-b955a84cbccac90a2e86c31ece45610838e409f3.tar.bz2
test suite fix for AFS
-rw-r--r--ChangeLog1
-rw-r--r--tests/cmdAH.test10
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 01573d4..d7b1ca5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,7 @@
* generic/tclPathObj.c: fix for normalization of volume-relative
paths [Bug 767834]
* tests/winFCmd.test: new tests for both of the above.
+ * tests/cmdAH.test: fix for AFS problem in test suite [Bug 748960]
2003-09-13 Donal K. Fellows <fellowsd@cs.man.ac.uk>
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 /