summaryrefslogtreecommitdiffstats
path: root/tests/namespace.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2006-02-28 15:47:10 (GMT)
committerdgp <dgp@users.sourceforge.net>2006-02-28 15:47:10 (GMT)
commitee4fdde97a86a54e979eba422b462f0c45ae9121 (patch)
tree60936ebfe7abee67de474ed25fe62f127d92aee8 /tests/namespace.test
parent79c06cebc59a8bb6423c763367e84015e5fb0322 (diff)
downloadtcl-ee4fdde97a86a54e979eba422b462f0c45ae9121.zip
tcl-ee4fdde97a86a54e979eba422b462f0c45ae9121.tar.gz
tcl-ee4fdde97a86a54e979eba422b462f0c45ae9121.tar.bz2
* generic/tclBasic.c: Corrections to be sure that TCL_EVAL_GLOBAL
* tests/namespace.test: evaluations act the same as [uplevel #0] * tests/parse.test: evaluations, even when execution traces or * tests/trace.test: invocations of [::unknown] are present. [Bug 1439836].
Diffstat (limited to 'tests/namespace.test')
-rw-r--r--tests/namespace.test11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/namespace.test b/tests/namespace.test
index f6092cc..00f5243 100644
--- a/tests/namespace.test
+++ b/tests/namespace.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: namespace.test,v 1.55 2006/02/27 19:43:58 dgp Exp $
+# RCS: @(#) $Id: namespace.test,v 1.56 2006/02/28 15:47:10 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -2545,18 +2545,19 @@ test namespace-52.11 {unknown: with TCL_EVAL_INVOKE} -setup {
}
}
catch {rename ::noSuchCommand {}}
- set slave [interp create]
+ set ::slave [interp create]
} -body {
- $slave alias bar noSuchCommand
+ $::slave alias bar noSuchCommand
namespace eval test_ns_1 {
namespace unknown unknown
proc unknown args {
return FAIL
}
- $slave eval bar
+ $::slave eval bar
}
} -cleanup {
- interp delete $slave
+ interp delete $::slave
+ unset ::slave
namespace delete test_ns_1
rename ::unknown {}
rename unknown.save ::unknown