Tcl Source Code

View Ticket
Login
Ticket UUID: 3400826
Title: Test iocmd.tf-24.16 fails on netbsd
Type: Bug Created on: 2011-08-30 15:36:06
Submitter: egavilan Assigned to: andreas_kupries
Subsystem: 25. Channel System Severity:
Priority: 5 Medium Last modified: 2011-08-30 15:36:06
Status: Open Closed by:
Resolution: None Closed on:
Version: obsolete: 8.6b2
Description:
The iocmd.tf-24.16 test fails under netbsd.
Output of failed test follows:

ioCmd.test


==== iocmd.tf-24.16 chan write, note the background flush setup by close due to the EAGAIN leaving data in buffers. FAILED
==== Contents of test case:

    notes [inthread $c {
        note [puts -nonewline $c ABC ; flush $c]
        close $c
        notes
    } c]
    # Replace handler with all-tracking one which doesn't error.
    # This will tell us if a write-due-flush is there.
    proc foo {args} { note BG ; track }
    # Flush (sic!) the event-queue to capture the write from a
    # BG-flush.
    update
    set res

---- Result was:
{write rc0 ABC} {watch rc0 write} {} BG {write rc0 ABC} BG {finalize rc0}
---- Result should have been (glob matching):
{write rc* ABC} {watch rc* write} {} BG {write rc* ABC}
==== iocmd.tf-24.16 FAILED


The test itself was introduced in http://core.tcl.tk/tcl/info/1025712d5b1e7510c8ab