diff options
author | dgp <dgp@noemail.net> | 2004-05-25 17:44:27 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2004-05-25 17:44:27 (GMT) |
commit | 67e84a2f62cc28726458d67e2d1cba1a502cefd8 (patch) | |
tree | a3bdf1015eb17a60676c62d008a6b6a6f72df2dd /tests/exec.test | |
parent | c6d3e84b74b1fe4e43ddac5b9ab68592c48fb15f (diff) | |
download | tcl-67e84a2f62cc28726458d67e2d1cba1a502cefd8.zip tcl-67e84a2f62cc28726458d67e2d1cba1a502cefd8.tar.gz tcl-67e84a2f62cc28726458d67e2d1cba1a502cefd8.tar.bz2 |
* tests/autoMkindex.test (autoMkindex-5.2): Use variable "result"
that gets cleaned up.
* tests/exec.test: Clean up the "path" array.
* tests/interp.test (interp-9.3): Initialize res, so prior values
cannot make the test fail.
FossilOrigin-Name: 60cd15fd68145fe8796db829cb85a9d82b08287c
Diffstat (limited to 'tests/exec.test')
-rw-r--r-- | tests/exec.test | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/exec.test b/tests/exec.test index 8d338ca..40289aa 100644 --- a/tests/exec.test +++ b/tests/exec.test @@ -11,7 +11,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: exec.test,v 1.19 2004/05/19 20:15:31 dkf Exp $ +# RCS: @(#) $Id: exec.test,v 1.20 2004/05/25 17:44:29 dgp Exp $ package require tcltest 2 namespace import -force ::tcltest::* @@ -19,7 +19,7 @@ namespace import -force ::tcltest::* # All tests require the "exec" command. # Skip them if exec is not defined. testConstraint exec [llength [info commands exec]] -catch {unset path} +unset -nocomplain path set path(echo) [makeFile { puts -nonewline [lindex $argv 0] foreach str [lrange $argv 1 end] { @@ -601,6 +601,7 @@ test exec-18.1 { exec cat deals with weird file names} {exec tempNotWin} { foreach file {script gorp.file gorp.file2 echo cat wc sh sleep exit err} { removeFile $file } +unset -nocomplain path ::tcltest::cleanupTests return |