Tcl Source Code

View Ticket
Login
2026-11-18
16:27 • Closed ticket [1030133fff]: more leave trace tests needed plus 8 other chang... artifact: 90110a1456 user: jan.nijtmans
16:27
Add tests for [1030133fff]: leave and leavestep traces must not change the result, -errorcode, -erro... check-in: f27b49fca0 user: jan.nijtmans tags: core-8-6-branch
13:33
Add tests for [1030133fff]: leave and leavestep traces must not change the result, -errorcode, -erro... check-in: 814c5c4763 user: jan.nijtmans tags: core-9-0-branch
2026-11-15
14:06
Add tests for [1030133fff]: leave and leavestep traces must not change the result, -errorcode, -erro... check-in: a865e670da user: jan.nijtmans tags: trunk, main
2026-10-17
06:40 • Ticket [1030133fff] more leave trace tests needed status still Open with 3 o... artifact: 40f464327c user: serhiy.storchaka
06:39
Add tests for [1030133fff]: leave and leavestep traces must not change the result, -errorcode, -erro... closed check-in: 3cb057b2bd user: serhiy.storchaka tags: leave-trace-tests
2004-09-17
22:43 • New ticket [1030133fff] more leave trace tests needed. artifact: a841910586 user: dgp

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!