Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2000-10-26
08:31 • Closed ticket [218897ffff]: tests don't catch problems when socket already u... artifact: 04f147d2d8 user: welch
01:07 • New ticket [218897ffff]. artifact: 379017c0db user: nobody

tests don't catch problems when socket already used

Closed / Fixed218897ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:07:21
OriginalBugID: 2590 Bug
Version: 8.2
SubmitDate: '1999-08-20'
LastModified: '2000-01-12'
Severity: MED
Status: Released
Submitter: techsupp
ChangedBy: hobbs
RelatedBugIDs: 1744
OS: Solaris
OSVersion: 2.6
Machine: Other
FixedDate: '2000-01-12'
FixedInVersion: 8.3b1
ClosedDate: '2000-10-25'


Name: Larry W. Virden

Comments:
This is the result of building a non-thread version of tcl 8.2.
    It is great to have this clean of a run.  Just one more
    change, which I hope someone looking at the test suite can propose.

ReproducibleScript:
configure --enable-shared
    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
        }
        set s1 [socket -server accept 5001]
        after 1000
        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:
    couldn't open socket: address already in use
    ---- Result should have been:
    3 3 done
    ==== event-11.5 FAILED

DesiredBehavior:
test case pass



This looks like a bug in the test suite that doesn't catch
problems when the socket is already being used. 
-- 08/31/1999 hobbs
These are now under 'catch', but it still is inflexible about
requiring a port.  It is too difficult a proposition to make
all such tests (that effectively work, but are sensitive to
machine setup) work on all users machines. 
-- 01/12/2000 hobbs
welch Closed ticket [218897ffff]. [History diff]2000-10-26 08:31:15
Log in (anonymous is fine) to add a comment.