Skip to content
Tcl Source Code View Ticket
Login

View Ticket

event test failure due to assumption that port 5001 is avail

Closed / Fixed217932ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:46:13
OriginalBugID: 3415 Bug
Version: 8.2.1
SubmitDate: '1999-11-05'
LastModified: '2000-01-12'
Severity: MED
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
RelatedBugIDs: 2590
OS: Solaris
OSVersion: 2.6
FixedDate: '2000-10-25'
ClosedDate: '2000-01-12'


Name:
Larry W. Virden

CVS:
Oct 29, 1999, 7PM EDT

ReproducibleScript:
configure
make all test

ObservedBehavior:
event.test

==== event-11.5 Tcl_VwaitCmd procedure: round robin scheduling, 2 sources FAILED
==== Contents of test case:

    set f1 [open test1 w]
    proc accept {s args} {
        puts $s foobar
        close $s
    }
    catch {set s1 [socket -server accept 5001]}
    after 1000
    catch {set s2 [socket 127.0.0.1 5001]}
    close $s1
    set x 0
    set y 0
    set z 0
    fileevent $s2 readable { incr z }
    vwait z
    fileevent $f1 writable { incr x; if { $y == 3 } { set z done } }
    fileevent $s2 readable { incr y; if { $x == 3 } { set z done } }
    vwait z
    close $f1
    close $s2
    file delete test1 test2
    list $x $y $z

==== Test generated error:
can't read "s1": no such variable
---- Result should have been:
3 3 done
==== event-11.5 FAILED

DesiredBehavior:
Tcl pass all tests



This is due to the test suites assuming port 5001 is available,
when it might not be. 
-- 11/10/1999 hobbs
welch Closed ticket [217932ffff]. [History diff]2000-10-26 08:10:54
dgp Ticket [217932ffff]: 3 changes [History diff]2001-04-06 02:43:33
Log in (anonymous is fine) to add a comment.