summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2003-06-10 19:46:34 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2003-06-10 19:46:34 (GMT)
commit06dfd692f84e8dec06b42f65482a77a9f5c09136 (patch)
treef99b43a3553ea52e187ef8667b27aa32ef732ad6 /tests
parent2de53852436287ca9c97b41636e38df538506625 (diff)
downloadtcl-06dfd692f84e8dec06b42f65482a77a9f5c09136.zip
tcl-06dfd692f84e8dec06b42f65482a77a9f5c09136.tar.gz
tcl-06dfd692f84e8dec06b42f65482a77a9f5c09136.tar.bz2
* generic/tclBasic.c:
* generic/tclExecute.c: let TclExecuteObjvInternal call TclInterpReady instead of relying on its callers to do so; fix for the part of [Bug 495830] that is new in 8.4. * tests/interp.test: Added tests 18.9 (knownbug) and 18.10
Diffstat (limited to 'tests')
-rw-r--r--tests/interp.test12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/interp.test b/tests/interp.test
index 7c1c78c..bd322bb 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.22 2003/05/12 22:44:24 dgp Exp $
+# RCS: @(#) $Id: interp.test,v 1.23 2003/06/10 19:46:47 msofer Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2.1
@@ -759,6 +759,16 @@ if {[info commands testinterpdelete] == ""} {
list [catch {a eval foo} msg] $msg
} {1 {attempt to call eval in deleted interpreter}}
}
+test interp-18.9 {eval in deleted interp, bug 495830} {knownbug} {
+ interp create tst
+ interp alias tst suicide {} interp delete tst
+ list [catch {tst eval {suicide; set a 5}} msg] $msg
+} {1 {attempt to call eval in deleted interpreter}}
+test interp-18.10 {eval in deleted interp, bug 495830} {
+ interp create tst
+ interp alias tst suicide {} interp delete tst
+ list [catch {tst eval {set set set; suicide; $set a 5}} msg] $msg
+} {1 {attempt to call eval in deleted interpreter}}
# Test alias deletion