diff options
author | msofer <msofer@noemail.net> | 2004-03-30 16:22:11 (GMT) |
---|---|---|
committer | msofer <msofer@noemail.net> | 2004-03-30 16:22:11 (GMT) |
commit | e6add907e070338483729037c546220550ca9e11 (patch) | |
tree | 513ad8ee17cc642e66403897bbb9188df51ee60b /tests/rename.test | |
parent | ae318d363e4d9b2e58028a49f792e7beb226dd93 (diff) | |
download | tcl-e6add907e070338483729037c546220550ca9e11.zip tcl-e6add907e070338483729037c546220550ca9e11.tar.gz tcl-e6add907e070338483729037c546220550ca9e11.tar.bz2 |
* generic/tclCompile.c: New instruction code INST_START_CMD
* generic/tclCompile.h: that allows checking the bytecode's
* generic/tclExecute.c: validity [Bug 729692] and the interp's
* tests/interp.test (18.9): readyness [Bug 495830] before running
* tests/proc.test (7.1): the command. It also changes the
* tests/rename.test (6.1): mechanics of the async tests in TEBC,
doing it now at command start instead of every 16 instructions.
FossilOrigin-Name: f7f63d8e13b76d48c0ba10572aa88d8700415e7c
Diffstat (limited to 'tests/rename.test')
-rw-r--r-- | tests/rename.test | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/rename.test b/tests/rename.test index babe4ef..a33afaa 100644 --- a/tests/rename.test +++ b/tests/rename.test @@ -11,7 +11,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: rename.test,v 1.10 2001/09/12 20:28:50 dgp Exp $ +# RCS: @(#) $Id: rename.test,v 1.11 2004/03/30 16:22:22 msofer Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -160,7 +160,7 @@ catch {rename unknown.old unknown} test rename-6.1 {old code invalidated (epoch incremented) when cmd with compile proc is renamed } { - proc x {} { + proc x {} { set a 123 set b [incr a] } @@ -168,6 +168,8 @@ test rename-6.1 {old code invalidated (epoch incremented) when cmd with compile rename incr incr.old proc incr {} {puts "new incr called!"} catch {x} msg + rename incr {} + rename incr.old incr set msg } {wrong # args: should be "incr"} |