summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2003-09-24 02:17:09 (GMT)
committerdgp <dgp@users.sourceforge.net>2003-09-24 02:17:09 (GMT)
commitb5d80dadf08263e6780d1038b46fdbb4eaa4829c (patch)
tree39da8d892b5c4660498cff95945920fe451cacbf /tests
parentc9ac0de4ba3254bc18fb2222cf61c5e40813fd97 (diff)
downloadtcl-b5d80dadf08263e6780d1038b46fdbb4eaa4829c.zip
tcl-b5d80dadf08263e6780d1038b46fdbb4eaa4829c.tar.gz
tcl-b5d80dadf08263e6780d1038b46fdbb4eaa4829c.tar.bz2
* generic/tclCmdMZ.c (): Fixed [Bug 807243] where
* tests/trace.test (trace-31,32.*): the introspection results of both [trace info command] and [trace info execution] were getting co-mingled. Thanks to Mark Saye for the report.
Diffstat (limited to 'tests')
-rw-r--r--tests/trace.test38
1 files changed, 37 insertions, 1 deletions
diff --git a/tests/trace.test b/tests/trace.test
index cedb7ba..4e010e9 100644
--- a/tests/trace.test
+++ b/tests/trace.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: trace.test,v 1.26.2.1 2003/03/27 13:11:17 dkf Exp $
+# RCS: @(#) $Id: trace.test,v 1.26.2.2 2003/09/24 02:17:10 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -2093,6 +2093,42 @@ test trace-28.10 {exec trace info nonsense} {
list [catch {trace remove execution} res] $res
} {1 {wrong # args: should be "trace remove execution name opList command"}}
+# Missing test number to keep in sync with the 8.5 branch
+# (want to backport those tests?)
+
+test trace-31.1 {command and execution traces shared struct} {
+ # Tcl Bug 807243
+ proc foo {} {}
+ trace add command foo delete foo
+ trace add execution foo enter foo
+ set result [trace info command foo]
+ trace remove command foo delete foo
+ trace remove execution foo enter foo
+ rename foo {}
+ set result
+} [list [list delete foo]]
+test trace-31.2 {command and execution traces shared struct} {
+ # Tcl Bug 807243
+ proc foo {} {}
+ trace add command foo delete foo
+ trace add execution foo enter foo
+ set result [trace info execution foo]
+ trace remove command foo delete foo
+ trace remove execution foo enter foo
+ rename foo {}
+ set result
+} [list [list enter foo]]
+
+test trace-32.1 {mystery memory corruption} knownBug {
+ # Tcl Bug 811483
+ proc foo {} {}
+ trace add command foo delete foo
+ trace add execution foo enter foo
+ set result [trace info command foo]
+ rename foo {}
+ set result
+} [list [list delete foo]]
+
# Delete procedures when done, so we don't clash with other tests
# (e.g. foobar will clash with 'unknown' tests).
catch {rename foobar {}}