|
2026-11-17
| ||
| 14:41 | • Ticket [103abf181e] regression since 9.0.4 brings leaks and hangs to bundled Itc... artifact: 926ce5bc22 user: jan.nijtmans | |
|
2026-11-16
| ||
| 17:52 | • Ticket [103abf181e]: 3 changes artifact: 257230a4b3 user: serhiy.storchaka | |
|
2026-11-13
| ||
| 11:18 | • Closed ticket [2798078fff]: tcltest::cleanupTests makes Tk apps exit plus 6 ... artifact: e2866746f3 user: serhiy.storchaka | |
|
2026-10-28
| ||
| 13:44 | • Closed ticket [8413e79232]: tcltest should not exit an application plus 5 ot... artifact: 5753f561a7 user: jan.nijtmans | |
|
2026-10-22
| ||
| 11:44 | Many tcltest improvements, [773924ffff], [811659ffff], [572400ffff], [8413e79232] and [1528500fff] check-in: e44f1d0e87 user: jan.nijtmans tags: core-9-0-branch | |
| 08:31 | • Pending ticket [8413e79232]: tcltest should not exit an application plus 5 o... artifact: 5dc01db2a0 user: jan.nijtmans | |
| 08:25 | Many tcltest improvements, [773924ffff], [9f4feaaaa1], [811659ffff], [572400ffff], [8413e79232] and ... check-in: 891b7e7921 user: jan.nijtmans tags: trunk, main | |
|
2026-10-20
| ||
| 19:51 | • Ticket [8413e79232] tcltest should not exit an application status still Open... artifact: 672df0df4b user: serhiy.storchaka | |
| 19:46 | Fix [8413e79232]: cleanupTests exits under Tk only when the test file is the main script, not in an ... check-in: 2052c30735 user: serhiy.storchaka tags: tcltest-no-exit-when-sourced | |
|
2020-01-29
| ||
| 16:47 | • New ticket [8413e79232] tcltest should not exit an application. artifact: f7b980c531 user: tombert | |
tcltest should not exit an application
Closed / Fixed8413e79232449d82d512edfee22ded5701f683b5Created 7 years agoUpdated 35 days ago
Descriptionplain2020-01-29 16:47:09
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
Referenced by6
926ce5bc22Ticket [103abf181e] regression since 9.0.4 brings leaks and hangs to bundled Itcl 4.3.8 status still Closed with 5 other changes ticket2026-11-17 14:41:41257230a4b3Ticket [103abf181e] regression since 9.0.4 brings leaks and hangs to bundled Itcl 4.3.8 status still Open with 3 other changes ticket2026-11-16 17:52:41e2866746f3Closed ticket [2798078fff]: tcltest::cleanupTests makes Tk apps exit plus 6 other changes ticket2026-11-13 11:18:44e44f1d0e87Many tcltest improvements, [773924ffff], [811659ffff], [572400ffff], [8413e79232] and [1528500fff] check-in2026-10-22 11:44:24891b7e7921Many tcltest improvements, [773924ffff], [9f4feaaaa1], [811659ffff], [572400ffff], [8413e79232] and [1528500fff] check-in2026-10-22 08:25:312052c30735Fix [8413e79232]: cleanupTests exits under Tk only when the test file is the main script, not in an application that sources it. check-in2026-10-20 19:46:53
serhiy.storchakawiki2026-10-20 19:51:17
Still the case on main, 9.0 and 8.6. The exit is there so that wish foo.test 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 [tcltest-no-exit-when-sourced]: cleanupTests exits only when, in addition, the test file is the main script of the application ([file normalize [info script]] eq [file normalize $::argv0]). An application that sources a test file keeps running. wish foo.test and Tk's all.tcl exit as before. The behaviour is now documented in tcltest.n; new test tcltest-29.1.
jan.nijtmanswiki2026-10-22 08:31:11
Fixed in [trunk], not backported yet to 9.0 and 8.6
jan.nijtmanswiki2026-10-28 13:44:23
Now also backported to core-9-0-branch and core-8-6-branch
Closing. Many thanks!
Log in (anonymous is fine) to add a comment.