Tcl Source Code

View Ticket
Login
Ticket UUID: 1df76ec7518361403505e05049562d57873fc8f2
Title: tcltest: software termination does not result in a failure of the test
Type: Bug Created on: 2018-10-24 14:23:47
Submitter: bll Assigned to: nobody
Subsystem: 34. tcltest Package Severity: Minor
Priority: 5 Medium Last modified: 2026-10-22 17:19:28
Status: Closed Closed by: serhiy.storchaka
Resolution: Fixed Closed on: 2026-10-21 08:47:09
Version: 8.6.8
Description:
Occasionally my tests will hang (mac os x: timing related issues in my software) 
and I have to kill the test processes so that it will continue
with the rest of the tests.  This results in the following message:

Test file error: child killed: software termination signal

tcltest does not trap this, and does not report an error for the test.
tcltest should report this as a test failure.
User Comments:
serhiy.storchaka added on 2026-10-21 08:47:09:

Since Tcl 8.6.9 (tcltest 2.5, TIP 525: [a4ea2b2387], repaired by [0ef0b36b31]) a test file killed by a signal is listed under "Test files exiting with errors" and tcltest::runAllTests returns 1, so all.tcl can exit with a failure status. Checked with main, 9.0 and 8.6. Closing.