Tcl Source Code

View Ticket
Login
Ticket UUID: 6676bc2548fe9555f3ae786419ff0f8b2dccbb38
Title: process-7.3 fails
Type: Bug Created on: 2018-05-11 11:11:10
Submitter: dgp Assigned to: nobody
Subsystem: - New Builtin Commands Severity: Minor
Priority: 5 Medium Last modified: 2026-10-22 17:19:31
Status: Closed Closed by: serhiy.storchaka
Resolution: Fixed Closed on: 2026-10-21 10:03:39
Version: 8.7+
Description:
After latest commits, `make test` reports....

....
process.test


==== process-7.3 child killed FAILED
==== Contents of test case:

    tcl::process autopurge 0
    set pid [exec [interpreter] $path(exit) -1 &]
    lindex [tcl::process status -wait $pid] 1

---- Result was:
1 {child process exited abnormally} {CHILDSTATUS 9849 255}
---- Result should have been (glob matching):
1 {child killed: unknown signal} {CHILDKILLED * {unknown signal} {unknown signal}}
==== process-7.3 FAILED

pwd.test
...
Tests ended at Fri May 11 07:08:04 EDT 2018
all.tcl:        Total   33625   Passed  32518   Skipped 1107    Failed  0



So two problems:
    1) the test fails.
    2) the failure isn't getting counted by tcltest
User Comments:
dgp added on 2018-05-11 17:25:51:
The second issue was an easy fix. The new test file process.test
had not included a call to the command [::tcltest::cleanupTests].

serhiy.storchaka added on 2026-10-21 10:03:39:

Both problems are fixed for 9.0.0: [743007c3cc] added the missing cleanupTests, and [71618fd407] limits process-7.3 to Windows (on Unix exit -1 is just exit status 255, not a kill).