Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 915212571a1bf6ad40060510138809229aee8f49d428c74ad1821b73a31e542d
Ticket: 3b00b2198d3a901ff4ec002ff705a0162f7bf202
async test suite calls are missing cleanup
User & Date: anonymous on 2021-07-20 09:28:34
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    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
    
  5. is_private changed to: "0"
  6. login: "anonymous"
  7. priority changed to: "5 Medium"
  8. private_contact changed to: "996cc25f404016303f46d284bf704c17d8b7bc5f"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "anonymous"
  13. subsystem changed to: "34. tcltest Package"
  14. title changed to: "async test suite calls are missing cleanup"
  15. type changed to: "Bug"