diff options
author | dgp <dgp@users.sourceforge.net> | 2004-03-01 17:33:45 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2004-03-01 17:33:45 (GMT) |
commit | 35da23f80f35ffde79b635c74c0a31b1a6b9b181 (patch) | |
tree | 86e6a76aafdf522e161a414c96b16659f1cf2956 /tests | |
parent | 23b1014c0fb8387895fe3b847999ea8b17572bee (diff) | |
download | tcl-35da23f80f35ffde79b635c74c0a31b1a6b9b181.zip tcl-35da23f80f35ffde79b635c74c0a31b1a6b9b181.tar.gz tcl-35da23f80f35ffde79b635c74c0a31b1a6b9b181.tar.bz2 |
* generic/tclTrace.c (TclCheckInterpTraces): The TIP 62
* generic/tclTest.c (TestcmdtraceCmd): implementation introduced a
* tests/trace.test (trace-29.10): bug by testing the CallFrame
level instead of the iPtr->numLevels level when deciding what traces
created by Tcl_Create(Obj)Trace to call. Added test to expose the
error, and made fix. [Request 462580]
Diffstat (limited to 'tests')
-rw-r--r-- | tests/trace.test | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/trace.test b/tests/trace.test index 0325cef..d236421 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.33 2003/11/14 20:44:47 dgp Exp $ +# RCS: @(#) $Id: trace.test,v 1.34 2004/03/01 17:33:45 dgp Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -2149,6 +2149,15 @@ test trace-29.9 {Tcl_CreateObjTrace, status return unknown} {testcmdtrace} { list [catch {testcmdtrace resulttest {OtherStatus $x}} result] [set result] } {6 {}} +test trace-29.10 {Tcl_CreateTrace, correct level interpretation} {testcmdtrace} { + proc foo {} {uplevel 1 bar} + proc bar {} {uplevel 1 grok} + proc grok {} {uplevel 1 spock} + proc spock {} {uplevel 1 fascinating} + proc fascinating {} {} + testcmdtrace leveltest {foo} +} {foo {foo} {uplevel 1 bar} {uplevel 1 bar} bar {bar} {uplevel 1 grok} {uplevel 1 grok}} + test trace-30.1 {Tcl_DeleteTrace} {emptyTest} { # the above tests have tested Tcl_DeleteTrace } {} |