diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2004-03-30 16:22:11 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2004-03-30 16:22:11 (GMT) |
commit | d7342e95b8185e47c027ad6a573b4242e5ca67c9 (patch) | |
tree | 513ad8ee17cc642e66403897bbb9188df51ee60b /tests/rename.test | |
parent | 18687b718a2c5a3bc06cd3aea1c081fa25827009 (diff) | |
download | tcl-d7342e95b8185e47c027ad6a573b4242e5ca67c9.zip tcl-d7342e95b8185e47c027ad6a573b4242e5ca67c9.tar.gz tcl-d7342e95b8185e47c027ad6a573b4242e5ca67c9.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.
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"} |