| Ticket UUID: | 1030133 | ||
| Title: | more leave trace tests needed | ||
| Type: | Bug | Created on: | 2004-09-17 22:43:04 |
| Submitter: | dgp | Assigned to: | dgp |
| Subsystem: | 46. Traces | Severity: | Minor |
| Priority: | 5 Medium | Last modified: | 2026-11-18 16:27:24 |
| Status: | Closed | Closed by: | jan.nijtmans |
| Resolution: | Fixed | Closed on: | 2026-11-18 16:27:24 |
| Version: | obsolete: 8.5a2 | ||
| Description: | ||||
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. | ||||
| User Comments: | ||||
serhiy.storchaka added on 2026-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.nijtmans added on 2026-11-18 16:27:24:
Merged to [a865e670da|trunk], core-9-0-branch and core-8-6-branch Many thanks! | ||||
