summaryrefslogtreecommitdiffstats
path: root/tests/interp.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2004-10-28 00:00:44 (GMT)
committerdgp <dgp@users.sourceforge.net>2004-10-28 00:00:44 (GMT)
commiteb3bdd1436d6f44483a5067f3d7021ca26e2cce6 (patch)
treede4836ab7ed361708adf24ebcd065196160d1c0a /tests/interp.test
parent3dc792af1b4092559af5da21b600651cde78c1ff (diff)
downloadtcl-eb3bdd1436d6f44483a5067f3d7021ca26e2cce6.zip
tcl-eb3bdd1436d6f44483a5067f3d7021ca26e2cce6.tar.gz
tcl-eb3bdd1436d6f44483a5067f3d7021ca26e2cce6.tar.bz2
* tests/appendComp.test: Backport test suite fixes of errors
* tests/autoMkindex.test: revealed by -singleproc 1 -debug 1 * tests/exec.test: options to make test. * tests/execute.test: * tests/interp.test: * tests/io.test: * tests/namespace.test: * tests/regexpComp.test: * tests/stringComp.test: * tests/unixInit.test: * tests/winPipe.test:
Diffstat (limited to 'tests/interp.test')
-rw-r--r--tests/interp.test14
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/interp.test b/tests/interp.test
index 769f32f..ff6e81e 100644
--- a/tests/interp.test
+++ b/tests/interp.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: interp.test,v 1.19.2.5 2003/09/04 17:36:50 dgp Exp $
+# RCS: @(#) $Id: interp.test,v 1.19.2.6 2004/10/28 00:01:07 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2.1
@@ -299,6 +299,7 @@ test interp-9.3 {testing aliases for hidden commands} {
catch {interp create a}
a eval {proc p {} {return ENTER_A}}
interp alias {} p a p
+ set res {}
lappend res [list [catch p msg] $msg]
interp hide a p
lappend res [list [catch p msg] $msg]
@@ -2931,11 +2932,12 @@ test interp-32.1 { parent's working directory should
test interp-33.1 {refCounting for target words of alias [Bug 730244]} {
# This test will panic if Bug 730244 is not fixed.
- interp create i
- proc test args {return $args}
- trace add execution test enter {interp alias i alias {} ;#}
- interp alias i alias {} test this
- i eval alias
+ set i [interp create]
+ proc testHelper args {rename testHelper {}; return $args}
+ # Note: interp names are simple words by default
+ trace add execution testHelper enter "interp alias $i alias {} ;#"
+ interp alias $i alias {} testHelper this
+ $i eval alias
} this
# cleanup