summaryrefslogtreecommitdiffstats
path: root/tests/cmdAH.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2003-10-07 21:45:38 (GMT)
committerdgp <dgp@users.sourceforge.net>2003-10-07 21:45:38 (GMT)
commitdf6d45b4f6b62d1991c8aee5e5df8f841a28fb1f (patch)
treeeb5a51ee14571c5cd60a902b9b10716c36126ce5 /tests/cmdAH.test
parent0224ac164a76ea4e7643fc44507024b5bb26c77d (diff)
downloadtcl-df6d45b4f6b62d1991c8aee5e5df8f841a28fb1f.zip
tcl-df6d45b4f6b62d1991c8aee5e5df8f841a28fb1f.tar.gz
tcl-df6d45b4f6b62d1991c8aee5e5df8f841a28fb1f.tar.bz2
* tests/cmdAH.test:
* tests/exec.test: Corrected temporary file management * tests/fileSystem.test: issues uncovered by -debug 1 test * tests/io.test: operations. Also backported some * tests/ioCmd.test: other fixes from the HEAD. * tests/main.test: * tests/pid.test: [Bugs 675605, 675655, 675659] * tests/socket.test: * tests/source.test:
Diffstat (limited to 'tests/cmdAH.test')
-rw-r--r--tests/cmdAH.test16
1 files changed, 9 insertions, 7 deletions
diff --git a/tests/cmdAH.test b/tests/cmdAH.test
index ae38606..436425b 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.36 2003/09/16 16:06:35 vincentdarley Exp $
+# RCS: @(#) $Id: cmdAH.test,v 1.37 2003/10/07 21:45:38 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2.1
@@ -1465,15 +1465,17 @@ rename waitForEvenSecondForFAT {}
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} {
- if {$tcl_platform(platform) eq "unix"} {
+test cmdAH-25.2 {Tcl_FileObjCmd: owned} -constraints {!unix} -body {
+ file owned $gorpfile
+} -result 1
+test cmdAH-25.2.1 {Tcl_FileObjCmd: owned} -constraints {unix} -setup {
# Avoid problems with AFS
set tmpfile [makeFile "data" touch.me /tmp]
+} -body {
file owned $tmpfile
- } else {
- file owned $gorpfile
- }
-} 1
+} -cleanup {
+ removeFile touch.me /tmp
+} -result 1
test cmdAH-25.3 {Tcl_FileObjCmd: owned} {unixOnly notRoot} {
file owned /
} 0