summaryrefslogtreecommitdiffstats
path: root/tests/proc.test
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2004-03-30 16:22:11 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2004-03-30 16:22:11 (GMT)
commitd7342e95b8185e47c027ad6a573b4242e5ca67c9 (patch)
tree513ad8ee17cc642e66403897bbb9188df51ee60b /tests/proc.test
parent18687b718a2c5a3bc06cd3aea1c081fa25827009 (diff)
downloadtcl-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/proc.test')
-rw-r--r--tests/proc.test11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/proc.test b/tests/proc.test
index bf23ef7..662d56f 100644
--- a/tests/proc.test
+++ b/tests/proc.test
@@ -13,7 +13,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: proc.test,v 1.12 2003/11/14 20:44:47 dgp Exp $
+# RCS: @(#) $Id: proc.test,v 1.13 2004/03/30 16:22:22 msofer Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -325,6 +325,15 @@ test proc-6.1 {ProcessProcResultCode: Bug 647307 (negative return code)} {
set result
} -5
+test proc-7.1 {Redefining a compiled cmd: Bug 729692} {
+ proc bar args {}
+ proc foo {} {
+ proc bar args {return bar}
+ bar
+ }
+ foo
+} bar
+
# cleanup
catch {rename p ""}
catch {rename t ""}