Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a289b0d00615f5bee1125e899bccc9f33d831c50
Ticket: 3428754fffffffffffffffffffffffffffffffff
socket test suite failures with tcl source code head
User & Date: lvirden on 2011-10-26 12:51:33
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    platform: sparc solaris 10, sun c compiler. tcl zip file downloaded from activestate ftp site
    
    socket.test
    
    ==== socket-14.1 [socket -async] fileevent while still connecting FAILED
    ==== Contents of test case:
    
            set client [socket -async localhost $port]
            fileevent $client writable {
                lappend x [fconfigure $client -error]
                fileevent $client writable {}
            }
            set after [after 1000 {lappend x timeout}]
            while {[llength $x] < 2 && "timeout" ni $x} {
                vwait x
            }
            lsort $x; # we only want to see both events, the order doesn't matter
    
    ---- Result was:
    ok timeout
    ---- Result should have been (exact matching):
    {} ok
    ==== socket-14.1 FAILED
    
    ==== socket-14.2 [socket -async] fileevent connection refused FAILED
    ==== Contents of test case:
    
            set client [socket -async localhost [randport]]
            fileevent $client writable {set x [fconfigure $client -error]}
            set after [after 1000 {set x timeout}]
            vwait x
            if {$x eq "timeout"} {
                append x ": [fconfigure $client -error]"
            }
            set x
    
    ---- Test generated error; Return code was: 1
    ---- Return code should have been one of: 0 2
    ---- errorInfo: couldn't open socket: connection refused
        while executing
    "socket -async localhost [randport]"
        ("uplevel" body line 2)
        invoked from within
    "uplevel 1 $script"
    ---- errorCode: POSIX ECONNREFUSED {connection refused}
    ---- Test cleanup failed:
    can not find channel named "sock142578"
    ---- errorInfo(cleanup): can not find channel named "sock142578"
        while executing
    "close $client"
        ("uplevel" body line 3)
        invoked from within
    "uplevel 1 $cleanup"
    ---- errorCode(cleanup): TCL LOOKUP CHANNEL sock142578
    ==== socket-14.2 FAILED
    
    ==== socket-14.4 [socket -async] and both, readdable and writable fileevents FAILED
    ==== Contents of test case:
    
            set client [socket -async localhost $port]
            fileevent $client writable {
                lappend x [fconfigure $client -error]
                fileevent $client writable {}
            }
            fileevent $client readable {lappend x [gets $client]}
            set after [after 1000 {lappend x timeout}]
            while {[llength $x] < 2 && "timeout" ni $x} {
                vwait x
            }
            lsort $x
    
    ---- Result was:
    timeout
    ---- Result should have been (exact matching):
    {} bye
    ==== socket-14.4 FAILED
    
    
  4. foundin changed to: "obsolete: 8.6b2"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "lvirden"
  10. subsystem changed to: "18. Commands M-Z"
  11. title changed to:
    socket test suite failures with tcl source code head
    
  12. type changed to: "Bug"