more leave trace tests needed
Closed / Fixed1030133fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 15 days ago
Descriptionplain2004-09-17 22:43:04
TEOVI takes care during leave traces to save and later restore the return options from the main command evaluation. There are no tests to demonstrate errors when this code is not present. Add some.
Referenced by4
f27b49fca0Add tests for [1030133fff]: leave and leavestep traces must not change the result, -errorcode, -errorinfo or custom return options of the traced command (trace-42.1 to trace-42.5) check-in2026-11-18 16:27:09814c5c4763Add tests for [1030133fff]: leave and leavestep traces must not change the result, -errorcode, -errorinfo or custom return options of the traced command (trace-42.1 to trace-42.5) check-in2026-11-18 13:33:36a865e670daAdd tests for [1030133fff]: leave and leavestep traces must not change the result, -errorcode, -errorinfo or custom return options of the traced command (trace-42.1 to trace-42.5) check-in2026-11-15 14:06:243cb057b2bdAdd tests for [1030133fff]: leave and leavestep traces must not change the result, -errorcode, -errorinfo or custom return options of the traced command (trace-42.1 to trace-42.5). check-in2026-10-17 06:39:49
serhiy.storchakawiki2026-10-17 06:40:56
The save and restore are now in TclCheckExecutionTraces() and TclCheckInterpTraces() (tclTrace.c). Existing tests catch their removal only partly, and none checks -errorcode, -errorinfo or custom return options. Proposed tests in branch leave-trace-tests: trace-42.1 to trace-42.5 check that leave and leavestep traces keep the result and return options of the traced command; they fail when Tcl_RestoreInterpState() is removed.
jan.nijtmanswiki2026-11-18 16:27:24
Merged to [trunk], core-9-0-branch and core-8-6-branch
Many thanks!
Log in (anonymous is fine) to add a comment.