Artifacts Associated With Ticket 8413e79232449d82
Ticket change [f7b980c531] (rid 178925) by tombert on 2020-01-29 16:47:09:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Well, the comment says it all. From tcltest-2.5.1.tm: # exit only if running Tk in non-interactive mode #This should be changed to determine if an event # loop is running, which is the real issue. # Actually, this doesn't belong here at all. A package # really has no business [exit]-ing an application. if {![catch {package present Tk}] && ![testConstraint interactive]} { exit } Took me an hour because I thought TCL is crashing. Here I see it's exiting. Please fix/remove the exit from this code. Regards - foundin initialized to: "8.6"
- is_private initialized to: "0"
- login: "tombert"
- priority initialized to: "5 Medium"
- private_contact initialized to: "55805032f00760ddf84eb3f8acb077da7bef1411"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "tombert"
- subsystem initialized to: "34. tcltest Package"
- title initialized to: "tcltest should not exit an application"
- type initialized to: "Bug"
Ticket change [672df0df4b] (rid 259576) by serhiy.storchaka on 2026-10-20 19:51:17:
- foundin changed to: "8.6.18, 9.0.5, 9.1.0"
- icomment:
Still the case on main, 9.0 and 8.6. The <code>exit</code> is there so that <code>wish foo.test</code> does not stay in the event loop after the tests, so simply removing it would change how Tk test files run. Proposed fix in branch [2052c30735|tcltest-no-exit-when-sourced]: <code>cleanupTests</code> exits only when, in addition, the test file is the main script of the application (<code>[file normalize [info script]] eq [file normalize $::argv0]</code>). An application that sources a test file keeps running. <code>wish foo.test</code> and Tk's <code>all.tcl</code> exit as before. The behaviour is now documented in tcltest.n; new test tcltest-29.1.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
Ticket change [5dc01db2a0] (rid 259841) by jan.nijtmans on 2026-10-22 08:31:11:
- assignee changed to: "jan.nijtmans"
- icomment:
Fixed in [891b7e7921|trunk], not backported yet to 9.0 and 8.6
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Pending"
Ticket change [5753f561a7] (rid 260739) by jan.nijtmans on 2026-10-28 13:44:23:
- closedate changed to: "2461342.0724992128"
- closer changed to: "jan.nijtmans"
- icomment:
Now also backported to core-9-0-branch and core-8-6-branch Closing. Many thanks!
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- status changed to: "Closed"