diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2004-05-19 20:15:29 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2004-05-19 20:15:29 (GMT) |
commit | e52d9cbf151b4d4106c36834e820db9442ec9a3b (patch) | |
tree | b07002700fcbcc6b4ed86c424196b744184971a1 /tests/unixFile.test | |
parent | cc56afda247802cb646330c25f3f03db20b1a43d (diff) | |
download | tcl-e52d9cbf151b4d4106c36834e820db9442ec9a3b.zip tcl-e52d9cbf151b4d4106c36834e820db9442ec9a3b.tar.gz tcl-e52d9cbf151b4d4106c36834e820db9442ec9a3b.tar.bz2 |
Massive test cleanup; all tests are run, and constraints are used where necessary.
Diffstat (limited to 'tests/unixFile.test')
-rw-r--r-- | tests/unixFile.test | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/tests/unixFile.test b/tests/unixFile.test index cc3b9b4..22c3885 100644 --- a/tests/unixFile.test +++ b/tests/unixFile.test @@ -9,19 +9,14 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: unixFile.test,v 1.7 2002/07/05 10:38:43 dkf Exp $ +# RCS: @(#) $Id: unixFile.test,v 1.8 2004/05/19 20:15:32 dkf Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest namespace import -force ::tcltest::* } -if {[info commands testobj] == {}} { - puts "This application hasn't been compiled with the \"testfindexecutable\"" - puts "command, so I can't test the Tcl_FindExecutable function" - ::tcltest::cleanupTests - return -} +testConstraint testfindexecutable [llength [info commands testfindexecutable]] set oldpwd [pwd] cd [temporaryDirectory] @@ -32,31 +27,31 @@ catch { } set absPath [file join [temporaryDirectory] junk] -test unixFile-1.1 {Tcl_FindExecutable} {unixOnly} { +test unixFile-1.1 {Tcl_FindExecutable} {testfindexecutable unixOnly} { set env(PATH) "" testfindexecutable junk } $absPath -test unixFile-1.2 {Tcl_FindExecutable} {unixOnly} { +test unixFile-1.2 {Tcl_FindExecutable} {testfindexecutable unixOnly} { set env(PATH) "/dummy" testfindexecutable junk } {} -test unixFile-1.3 {Tcl_FindExecutable} {unixOnly} { +test unixFile-1.3 {Tcl_FindExecutable} {testfindexecutable unixOnly} { set env(PATH) "/dummy:[pwd]" testfindexecutable junk } $absPath -test unixFile-1.4 {Tcl_FindExecutable} {unixOnly} { +test unixFile-1.4 {Tcl_FindExecutable} {testfindexecutable unixOnly} { set env(PATH) "/dummy:" testfindexecutable junk } $absPath -test unixFile-1.5 {Tcl_FindExecutable} {unixOnly} { +test unixFile-1.5 {Tcl_FindExecutable} {testfindexecutable unixOnly} { set env(PATH) "/dummy:/dummy" testfindexecutable junk } {} -test unixFile-1.6 {Tcl_FindExecutable} {unixOnly} { +test unixFile-1.6 {Tcl_FindExecutable} {testfindexecutable unixOnly} { set env(PATH) "/dummy::/dummy" testfindexecutable junk } $absPath -test unixFile-1.7 {Tcl_FindExecutable} {unixOnly} { +test unixFile-1.7 {Tcl_FindExecutable} {testfindexecutable unixOnly} { set env(PATH) ":/dummy" testfindexecutable junk } $absPath |