Tcl Source Code

View Ticket
Login
Ticket UUID: 3b00b2198d3a901ff4ec002ff705a0162f7bf202
Title: async test suite calls are missing cleanup
Type: Bug Created on: 2021-07-20 09:28:34
Submitter: anonymous Assigned to: nobody
Subsystem: 34. tcltest Package Severity: Minor
Priority: 5 Medium Last modified: 2021-07-20 09:28:34
Status: Open Closed by: nobody
Resolution: None Closed on:
Version:
Description:
A number of the async tests that use vwait/after are missing cleanup or have race conditions.

For example, interp-36.7 will fail if the host system is under load as the 'foo' message doesn't get output correctly.  Discussion on the #tcl IRC channel led us to incorporating this patch which seems to have made the test more reliable:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-devtools/tcltk/tcl/interp.patch

That patch should probably be merged into tcl.

Also, the same problems appear to exists for other tests, for example we just had a failure in socket:

==== socket-14.12 [socket -async] background progress triggered by [fconfigure -error] FAILED
==== Contents of test case:

    set s [socket -async localhost [randport]]
    for {set i 0} {$i < 50} {incr i} {
        set x [fconfigure $s -error]
        if {$x != ""} break
        after 200
    }
    set x

---- Result was:

---- Result should have been (exact matching):
connection refused