Skip to content
Tcl Source Code History Of Ticket 8413e79232449d82
Login

History Of Ticket 8413e79232449d82

Artifacts Associated With Ticket 8413e79232449d82

  1. Ticket change [f7b980c531] (rid 178925) by tombert on 2020-01-29 16:47:09:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. 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
      
    5. foundin initialized to: "8.6"
    6. is_private initialized to: "0"
    7. login: "tombert"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "55805032f00760ddf84eb3f8acb077da7bef1411"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "tombert"
    14. subsystem initialized to: "34. tcltest Package"
    15. title initialized to: "tcltest should not exit an application"
    16. type initialized to: "Bug"
  2. Ticket change [672df0df4b] (rid 259576) by serhiy.storchaka on 2026-10-20 19:51:17:

    1. foundin changed to: "8.6.18, 9.0.5, 9.1.0"
    2. 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>&#91;file normalize &#91;info script&#93;&#93; eq &#91;file normalize $::argv0&#93;</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.
      
    3. login: "serhiy.storchaka"
    4. mimetype: "text/x-fossil-wiki"
  3. Ticket change [5dc01db2a0] (rid 259841) by jan.nijtmans on 2026-10-22 08:31:11:

    1. assignee changed to: "jan.nijtmans"
    2. icomment:
      Fixed in [891b7e7921|trunk], not backported yet to 9.0 and 8.6
      
    3. login: "jan.nijtmans"
    4. mimetype: "text/x-fossil-wiki"
    5. resolution changed to: "Fixed"
    6. status changed to: "Pending"
  4. Ticket change [5753f561a7] (rid 260739) by jan.nijtmans on 2026-10-28 13:44:23:

    1. closedate changed to: "2461342.0724992128"
    2. closer changed to: "jan.nijtmans"
    3. icomment:
      Now also backported to core-9-0-branch and core-8-6-branch
      
      Closing. Many thanks!
      
    4. login: "jan.nijtmans"
    5. mimetype: "text/x-fossil-wiki"
    6. status changed to: "Closed"