summaryrefslogtreecommitdiffstats
path: root/tests/interp.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2011-03-10 15:31:47 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2011-03-10 15:31:47 (GMT)
commit226803c44fa0615537f00d627caf13edc292ae67 (patch)
tree3d762efe761d77443255b67980b016728e90a1dc /tests/interp.test
parent5dcb1f9d84afc356cd64d639642cf059ef6c566c (diff)
downloadtcl-226803c44fa0615537f00d627caf13edc292ae67.zip
tcl-226803c44fa0615537f00d627caf13edc292ae67.tar.gz
tcl-226803c44fa0615537f00d627caf13edc292ae67.tar.bz2
Fix most of the failing tests (some of which were due to breakage done to the
parser used in auto_mkIndex; never a good idea to delete the ::tcl NS!)
Diffstat (limited to 'tests/interp.test')
-rw-r--r--tests/interp.test10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/interp.test b/tests/interp.test
index fd6090e..35f6824 100644
--- a/tests/interp.test
+++ b/tests/interp.test
@@ -2328,17 +2328,17 @@ test interp-28.1 {getting fooled by slave's namespace ?} -setup {
} -result {}
test interp-28.2 {master's nsName cache should not cross} -setup {
set i [interp create]
+ $i eval {proc filter lst {lsearch -all -inline -not $lst "::tcl"}}
} -body {
$i eval {
set x {namespace children ::}
set y [list namespace children ::]
- namespace delete {*}[{*}$y]
+ namespace delete {*}[filter [{*}$y]]
set j [interp create]
- $j eval {namespace delete {*}[namespace children ::]}
+ $j alias filter filter
+ $j eval {namespace delete {*}[filter [namespace children ::]]}
namespace eval foo {}
- set res [list [eval $x] [eval $y] [$j eval $x] [$j eval $y]]
- interp delete $j
- set res
+ list [filter [eval $x]] [filter [eval $y]] [filter [$j eval $x]] [filter [$j eval $y]]
}
} -cleanup {
interp delete $i