diff options
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 |