diff options
author | dgp <dgp@users.sourceforge.net> | 2009-02-02 06:02:41 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2009-02-02 06:02:41 (GMT) |
commit | 558cb6ad68272433faff4c01314fad2d63c1bfc3 (patch) | |
tree | 046641e3a9fe0dcfbfad92e254936bf0e05e8e77 /tests/nre.test | |
parent | 0c355e47e82f42d8d8988dc9eebadb524f1cc772 (diff) | |
download | tcl-558cb6ad68272433faff4c01314fad2d63c1bfc3.zip tcl-558cb6ad68272433faff4c01314fad2d63c1bfc3.tar.gz tcl-558cb6ad68272433faff4c01314fad2d63c1bfc3.tar.bz2 |
* generic/tclInterp.c: Reverted the conversion of [interp] into an
* tests/interp.test: ensemble. Such conversion is not necessary
* tests/nre.test: (or even all that helpful) in the NRE-enabling
of [interp invokehidden], and it has other implications -- including
significant forkage of the 8.5 and 8.6 implementations -- that are
better off avoided if there's no gain.
Diffstat (limited to 'tests/nre.test')
-rw-r--r-- | tests/nre.test | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/nre.test b/tests/nre.test index 873eb14..dd86e18 100644 --- a/tests/nre.test +++ b/tests/nre.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: nre.test,v 1.7 2009/01/29 17:13:50 dgp Exp $ +# RCS: @(#) $Id: nre.test,v 1.8 2009/02/02 06:02:41 dgp Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -394,11 +394,13 @@ test nre-X.1 {eval in wrong interp} { set res [$i eval { set x {namespace children ::} set y [list namespace children ::] - set j [interp create] namespace delete {*}[{*}$y] + set j [interp create] $j eval {namespace delete {*}[namespace children ::]} namespace eval foo {} - list [eval $x] [eval $y] [$j eval $x] [$j eval $y] + set res [list [eval $x] [eval $y] [$j eval $x] [$j eval $y]] + interp delete $j + set res }] interp delete $i set res |