summaryrefslogtreecommitdiffstats
path: root/tests/trace.test
Commit message (Collapse)AuthorAgeFilesLines
* * generic/tclBasic.c (TEOVI): fix por possible leak of a Commandmsofer2006-11-041-1/+19
| | | | | | | | | | | in the presence of execution traces that delete it. * generic/tclBasic.c (TEOVI): * tests/trace.test (trace-21.11): fix for [Bug 1590232], execution traces may cause a second command resolution in the wrong namespace. FossilOrigin-Name: 87f0d6eba665832f778ec088b2e60df5e3078bf9
* * generic/tclCmdMZ.c: Stop some interference between enter tracesdgp2006-04-111-1/+38
| | | | | | * tests/trace.test: and enterstep traces. [Bug 1458266] FossilOrigin-Name: f97f588d8c530014989abfb66765957c4458b30d
* * generic/tclBasic.c: Corrections to be sure that TCL_EVAL_GLOBALdgp2006-02-281-1/+35
| | | | | | | | * tests/parse.test: evaluations act the same as [uplevel #0] * tests/trace.test: evaluations, even when execution traces or invocations of [::unknown] are present. [Bug 1439836]. FossilOrigin-Name: 284938f57d3764db1738aed2c9ddf2056873a266
* * tests/trace.test (trace-34.5): [Bug 1047286], added a secondmsofer2005-11-181-2/+15
| | | | | | | test illustrating the role of "ns in callStack" in the ns's visibility during deletion traces. FossilOrigin-Name: 7b82e0cf5b35b8c2e93fc44792e8487621c50615
* * generic/tclBasic.c (Tcl_DeleteCommandFromToken):msofer2005-11-181-1/+22
| | | | | | | | | | * generic/tclCmdMZ.c (TraceCommandProc): * generic/tclInt.h (NS_KILLED): * generic/tclNamesp.c (Tcl_DeleteNamespace * tests/namespace.test (namespace-7.3-6): * tests/trace.test (trace-20.13-16): fix [Bugs 1355942/1355342]. FossilOrigin-Name: 56a462e45ca6948aca94cef4232dec3080078aa1
* * tests/trace.test (trace-13.2-4): added tests to detect leak, see [Bugmsofer2005-11-071-2/+56
| | | | | | 1348775]. FossilOrigin-Name: cbd1fa5e16440ceade56c3dc35df4d159a281192
* * generic/tclInt.h:msofer2005-11-041-3/+3
| | | | | | | | | * generic/tclNamesp.c: * generic/tclVar.c: fix for [Bugs 1338280/1337229]. Thanks Don. * tests/trace.test: fix duplicate test numbers FossilOrigin-Name: 3d6cada5c05de690f8d38cd0730fbfc70261ff25
* fix new test trace-18.4 [Bug 1338280]msofer2005-10-291-6/+9
| | | FossilOrigin-Name: e8722e1ee2ea5a4ddf7880e1f542772bff3f2fac
* * generic/tclCmdMZ.c (TraceVarProc): [Bug 1337229], partialmsofer2005-10-291-1/+18
| | | | | | | | | | | fix. Insure that a second call with TCL_TRACE_DESTROYED does not lead to a second call to Tcl_EventuallyFree(). It is still true that that second call should not happen, so the bug is not completely fixed. * tests/trace.test (test-18.3-4): added tests for bugs #1337229 and 1338280. FossilOrigin-Name: 8e9ed63a056d38b4358a5c3dbb90b3cfd85bc06e
* typodgp2005-07-261-2/+2
| | | FossilOrigin-Name: d1f1e8a69a678df8c2a08009e5f3c456dca86419
* * generic/tclNamesp.c (TclTeardownNamespace): Re-ordering so thatdgp2005-07-261-1/+12
| | | | | | | * tests/trace.test (trace-34.4): command delete traces fire while the command still exists. [Bug 1047286] FossilOrigin-Name: 98ddae5f7cbaca457cf1757a6a723a1ebe601213
* * generic/tclBasic.c: Made the walk of the active trace list awaredgp2005-06-211-1/+17
| | | | | | | | * generic/tclCmdMZ.c: of the direction of trace scanning, so the * generic/tclInt.h: proper correction can be made. [Bug 1224585] * tests/trace.test (trace-34.2,3): FossilOrigin-Name: f5039da57115f31cf6d6c5a5474730c7233c7507
* * generic/tclBasic.c (Tcl_DeleteTrace): Added missing walk of thedgp2005-06-211-1/+18
| | | | | | | * tests/trace.test (trace-34.1): list of active traces to cleanup references to traces being deleted. [Bug 1201035] FossilOrigin-Name: f48e2dd7c2ae2d965fc0da3fc61ea47a5a84c8d2
* * generic/tclCmdMZ.c (Tcl_TraceObjCmd): Fixed Bug 1065378 which faileddgp2004-11-151-1/+8
| | | | | | | | * tests/trace.test (trace-33.1): to permit a variable trace created with [trace variable] to be destroyed with [trace remove]. Thanks to Keith Vetter for the report. FossilOrigin-Name: 0c5016cb647bbe0a800b39b204726d074cc21543
* * generic/tclBasic.c (CallCommandTraces): Added safety bitdgp2003-09-291-13/+16
| | | | | | | | | | * tests/trace.test: masking to prevent any of the bit values TCL_TRACE_*_EXEC from leaking into the flags field of any Command struct. This does not fix [Bug 811483] but helps to contain some of its worst symptoms. Also backported the corrections to test trace-28.4 from Vince Darley. FossilOrigin-Name: 3592877a846a392416a27dd9fd55b8ac17e3f420
* * generic/tclCmdMZ.c (): Fixed [Bug 807243] wheredgp2003-09-241-1/+37
| | | | | | | | * 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. FossilOrigin-Name: 5e1bc3855cc6d878be767f1b5675b563f1de2bde
* Removed test number dups [Bugs 710322, 710327, 710349, 710363]dkf2003-03-271-13/+12
| | | FossilOrigin-Name: 3d89ba6a8855eee67c83064c6504d6d126fe4c6a
* * generic/tclBasic.c: Changed [trace add command] so that 'rename' kennykb2003-02-031-11/+16
| | | | | | | | | | | | callbacks get fully qualified names of the command. [Bug 651271]. ***POTENTIAL INCOMPATIBILITY*** * tests/trace.test: Modified the test cases for [trace add command] to expect fully qualified names on the 'rename' callbacks. Added a case for renaming a proc within a namespace. * doc/trace.n: Added language about use of fully qualified names in trace callbacks. FossilOrigin-Name: 382a9b8449c4d1fdb7a5bf0d41266c4b7904cda4
* execution trace, command trace and stringObj bug fixesvincentdarley2003-01-171-30/+99
| | | FossilOrigin-Name: bf6b0dfaf92bb241b87c9882d5d31505e5490d93
* 3 small fixesvincentdarley2002-11-131-4/+155
| | | FossilOrigin-Name: 602e2df05fd8888c0d53807ea066d4675ee13271
* execution trace fixvincentdarley2002-10-151-1/+34
| | | FossilOrigin-Name: 19ad8717ce5d2027738929ad566ef66a5e023902
* * generic/tclBasic.c (TclRenameCommand,CallCommandTraces):dgp2002-09-061-1/+8
| | | | | | | | * tests/trace.test (trace-27.1): Corrected memory leak when a rename trace deleted the command being traced. Test added. Thanks to Hemang Lavana for the fix. [Bug 604609] FossilOrigin-Name: d41757bf9869d0023b8170af353853d32f9a32dc
* Fix for [Bug 582522] - aliases now fire execution traces on the targetmsofer2002-07-291-1/+28
| | | | | | command. Optimisation of alias invocation. FossilOrigin-Name: 81bf54a15536a93fda01b0f68c488728bc3d0fd4
* * generic/tclBasic.c (CallCommandTraces): delete traces now receivemsofer2002-07-181-6/+6
| | | | | | the FQ old name of the command. [Bug 582532] (Don Porter) FossilOrigin-Name: 0f5b301ee4d33c8903f49c685c47bc4e42d6e45e
* * doc/CrtTrace.3: Added TIP#62 implementation of commandhobbs2002-06-171-8/+397
| | | | | | | | | | | | | | | | | * doc/trace.n: execution tracing [FR #462580] (lavana). * generic/tcl.h: This includes enter/leave tracing as well * generic/tclBasic.c: as inter-procedure stepping. * generic/tclCmdMZ.c: * generic/tclCompile.c: * generic/tclExecute.c: * generic/tclInt.decls: * generic/tclInt.h: * generic/tclIntDecls.h: * generic/tclStubInit.c: * generic/tclVar.c: * tests/trace.test: FossilOrigin-Name: 3da5a8279575a3067e306111e9319cbfab04b326
* TIP#102 implementation: 'trace list' becomes 'trace info'dkf2002-06-141-27/+27
| | | FossilOrigin-Name: 8a0002c6e070c04c17a2f2ac092a4ffdd825b536
* * generic/tclCmdMZ.c (Tcl_TraceObjCmd, TraceVarProc)hobbs2002-03-291-1/+12
| | | | | | | | | | | (TraceCommandProc, TclTraceCommandObjCmd): corrected potential double-free of traces on variables by flagging in Trace*Proc that it will free the var in case the eval wants to delete the var trace as well. [Bug #536937] Also converted Tcl_UntraceVar -> Tcl_UntraceVar2 and Tcl_Eval to Tcl_EvalEx in Trace*Proc for slight efficiency improvement. FossilOrigin-Name: 4a46ab8262433e1866c23cc0366dac251d480501
* restored consistency in refCount accounting by array traces [Bug #4484339]msofer2001-12-071-2/+14
| | | FossilOrigin-Name: 23f9cbbc0021bbbab98aa4a6d1cdad7ed3c106d5
* new algorithm for [array get], safe when there are traces that modify the ↵msofer2001-12-051-1/+29
| | | | | array [Bug #449893]. FossilOrigin-Name: 986407077b57825037784c7c9612b42619c46eec
* another fix for test trace-8.8dgp2001-11-211-1/+2
| | | FossilOrigin-Name: e1acd2856ec392959b5e30457f35db116b9759ea
* * corrected test trace-8.8 for Bug 219393dgp2001-11-211-2/+2
| | | FossilOrigin-Name: 147dd3c8975428e4b4d5c4f55558ff1c46f24c28
* Changes due to TIP#68; memory handling in variable traces is now correct!dkf2001-11-191-1/+22
| | | FossilOrigin-Name: c358dba51f4672d4f81751fd2d8b8dfae2af4f39
* Corrected test numbers in tests/trace.testmsofer2001-08-131-121/+121
| | | FossilOrigin-Name: 4c1225224863a82622ad8b61b5a33db3b73156da
* insure that [array] traces work for undefined vars [bug: 449094]msofer2001-08-101-1/+6
| | | FossilOrigin-Name: c3b6bd938e531e6c57394845e56a5ff050178a9c
* * tests/trace.test: Extended array tracing tests.ericm2000-08-251-8/+27
| | | | | | | | | | | | * doc/trace.n: Clarified information about when array traces will be fired. * generic/tclVar.c (Tcl_ArrayObjCmd): Corrected call to CallTraces (for TCL_TRACE_ARRAY) to only be called when the variable is either an array or is undefined, to ensure that array traces do not fire for scalar variables. FossilOrigin-Name: 78f46f24d0b2b1dff03ef9719925cbe02a4a224c
* * doc/trace.n: Updated documentation for new syntax; flagged oldericm2000-08-251-225/+582
| | | | | | | | | | | | | | | | | | | | | | | | | | | | syntax as deprecated; added documentation for command rename/delete traces and variable array traces. * tests/trace.test: Updated tests for new trace syntax; new tests for command rename/delete traces; new tests for array traces. * generic/tclVar.c: Support for new trace syntax; support for TCL_TRACE_ARRAY. * generic/tclStubInit.c: * generic/tclDecls.h: * generic/tcl.decls: Stub functions for command rename/delete traces. * generic/tcl.h: * generic/tclInt.h: * generic/tclBasic.c: Support for command traces. * generic/tclCmdMZ.c (TclTraceVariableObjCmd): Patched to support new [trace] syntax: trace {add|remove|list} {variable|command} name ops command Added support for command traces (rename, delete operations). Added support for TCL_TRACE_ARRAY at Tcl level (array operation for variable traces). FossilOrigin-Name: e12f4e1180c117b15f077f0487b3c38061d60f02
* Removed dead space at end of file.ericm2000-07-311-13/+1
| | | FossilOrigin-Name: a71bddc8219c92dd093c8f7a34baa56736193e16
* * tests/*.test: Changed all occurances of "namespace importericm2000-04-101-2/+2
| | | | | | ::tcltest" to "namespace import -force ::tcltest" [Bug: 3948]. FossilOrigin-Name: c2f93a113cfcb17a21da67cc20f54ab3f1b9fa3c
* Fixed style problems in many of the test files.rjohnson1999-06-261-2/+2
| | | | | | Fixed bug in pkg.test where defs.tcl was still being used. FossilOrigin-Name: dbfd75f43f496269e869e2fbd58f86e25bdcef4c
* Modified the tests to use the package tcltestjenn1999-06-261-2/+3
| | | FossilOrigin-Name: fdb0602e41e62bf526806c165dbf3f33a718fd37
* merged tcl 8.1 branch back into the main trunkstanton1999-04-161-5/+23
| | | FossilOrigin-Name: f3b32fb71c9011ac220779bd9dbe5617c9dc87d9
* Replaced SCCS strings, fixed binary filescore-8-0-3stanton1998-09-141-1/+1
| | | FossilOrigin-Name: 196f92fd17305db5fec1acd59f6926de11e01624
* Initial revisionrjohnson1998-03-261-0/+966
FossilOrigin-Name: f86c34e38d2a946e0ed196001fd756c57f90791a