diff options
author | dgp <dgp@noemail.net> | 2003-05-12 22:44:22 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2003-05-12 22:44:22 (GMT) |
commit | 8b8aa6f25756e80005a53e54b25addbf8a0ffb31 (patch) | |
tree | c573f9eb88f9a33584de27587d7b44ec7ee8bec9 /tests/interp.test | |
parent | 196627fe1babee42e951f2a2402b1d096d5fa960 (diff) | |
download | tcl-8b8aa6f25756e80005a53e54b25addbf8a0ffb31.zip tcl-8b8aa6f25756e80005a53e54b25addbf8a0ffb31.tar.gz tcl-8b8aa6f25756e80005a53e54b25addbf8a0ffb31.tar.bz2 |
* generic/tclInterp.c: (AliasObjCmd): Added refCounting of the words
* tests/interp.test (interp-33.1): of the target of an interp
alias during its execution. Also added test. [Bug 730244].
FossilOrigin-Name: 5e4caa051777c9763185b41ec96257f78d60f3c4
Diffstat (limited to 'tests/interp.test')
-rw-r--r-- | tests/interp.test | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/interp.test b/tests/interp.test index 5ce02d6..7c1c78c 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.21 2003/05/05 16:48:54 dkf Exp $ +# RCS: @(#) $Id: interp.test,v 1.22 2003/05/12 22:44:24 dgp Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest 2.1 @@ -2919,6 +2919,15 @@ test interp-32.1 { parent's working directory should "\{$parent\} != \{$child\}"} } 1 +test interp-33.1 {refCounting for target words of alias [Bug 730244]} { + # This test will panic if Bug 730244 is not fixed. + interp create i + proc test args {return $args} + trace add execution test enter {interp alias i alias {} ;#} + interp alias i alias {} test this + i eval alias +} this + # cleanup foreach i [interp slaves] { interp delete $i |