diff options
author | vincentdarley <vincentdarley> | 2003-07-21 10:24:24 (GMT) |
---|---|---|
committer | vincentdarley <vincentdarley> | 2003-07-21 10:24:24 (GMT) |
commit | 1785094f197999e5ca4392a5da228a31484c852e (patch) | |
tree | 975b1591d4c54c4b166460525cf4dba3ac611e8f | |
parent | 9e6286a0cd0ac288032cc89dbcbf92b8e01a7824 (diff) | |
download | tcl-1785094f197999e5ca4392a5da228a31484c852e.zip tcl-1785094f197999e5ca4392a5da228a31484c852e.tar.gz tcl-1785094f197999e5ca4392a5da228a31484c852e.tar.bz2 |
test suite on afs fix
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | tests/cmdAH.test | 16 |
2 files changed, 18 insertions, 3 deletions
@@ -1,3 +1,8 @@ +2003-07-21 Vince Darley <vincentdarley@users.sourceforge.net> + + * test/cmdAH.test: ensure certain tests run in local filesystem + [Bug 748960] + 2003-07-18 Daniel Steffen <das@users.sourceforge.net> * macosx/Makefile: added option to allow installing manpages diff --git a/tests/cmdAH.test b/tests/cmdAH.test index 2c142ae..31c2cb9 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.34 2003/07/04 13:04:12 dkf Exp $ +# RCS: @(#) $Id: cmdAH.test,v 1.35 2003/07/21 10:24:25 vincentdarley Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest 2.1 @@ -1186,7 +1186,12 @@ catch {file attributes $gorpfile -permissions 0765} # atime -set file [makeFile "data" touch.me] +# avoid problems with non-local filesystems +if {$::tcl_platform(platform) == "unix" && [file exists /tmp]} { + set file [makeFile "data" touch.me /tmp] +} else { + set file [makeFile "data" touch.me] +} test cmdAH-20.1 {Tcl_FileObjCmd: atime} { list [catch {file atime a b c} msg] $msg @@ -1228,7 +1233,12 @@ test cmdAH-20.6 {Tcl_FileObjCmd: atime touch} {winOnly testvolumetype} { expr {$newatime == $modatime ? 1 : "$newatime != $modatime"} } 1 -removeFile touch.me +if {$::tcl_platform(platform) == "unix" && [file exists /tmp]} { + removeFile touch.me /tmp +} else { + removeFile touch.me +} + # isdirectory test cmdAH-21.1 {Tcl_FileObjCmd: isdirectory} { |