Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 379017c0db496419fcd4ac213c1d7c8230744140
Ticket: 218897ffffffffffffffffffffffffffffffffff
tests don't catch problems when socket already used
User & Date: nobody on 2000-10-26 01:07:21
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    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
    
  4. foundin changed to: "obsolete: 8.2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "34. tcltest Package"
  10. title changed to:
    tests don't catch problems when socket already used
    
  11. type changed to: "Bug"