summaryrefslogtreecommitdiffstats
path: root/tests/autoMkindex.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2004-05-25 17:44:28 (GMT)
committerdgp <dgp@users.sourceforge.net>2004-05-25 17:44:28 (GMT)
commitf4ff4a223ba658dbf3fed7c42db2228b993699d1 (patch)
treea3bdf1015eb17a60676c62d008a6b6a6f72df2dd /tests/autoMkindex.test
parentd363c73bd491a731497011162ceabf6274a603c8 (diff)
downloadtcl-f4ff4a223ba658dbf3fed7c42db2228b993699d1.zip
tcl-f4ff4a223ba658dbf3fed7c42db2228b993699d1.tar.gz
tcl-f4ff4a223ba658dbf3fed7c42db2228b993699d1.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.
Diffstat (limited to 'tests/autoMkindex.test')
-rw-r--r--tests/autoMkindex.test8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/autoMkindex.test b/tests/autoMkindex.test
index 457e225..56e1ffb 100644
--- a/tests/autoMkindex.test
+++ b/tests/autoMkindex.test
@@ -9,7 +9,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: autoMkindex.test,v 1.14 2002/10/03 13:34:32 dkf Exp $
+# RCS: @(#) $Id: autoMkindex.test,v 1.15 2004/05/25 17:44:29 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -326,15 +326,15 @@ proc {[magic mojo proc]} {} {}
test autoMkindex-5.2 {correctly locate auto loaded procs with []} {
file delete tclIndex
- set res {}
+ set result {}
if { ![catch {auto_mkindex . pkg/magicchar2.tcl}] } {
# Make a slave interp to test the autoloading
set c [interp create]
$c eval {lappend auto_path [pwd]}
- set res [$c eval {catch {{[magic mojo proc]}}}]
+ set result [$c eval {catch {{[magic mojo proc]}}}]
interp delete $c
}
- set res
+ set result
} 0
removeFile [file join pkg magicchar2.tcl]