Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 787e5b5cd09e82ec10cd523ba9c14ec483dd7e0c
Ticket: 1639656fffffffffffffffffffffffffffffffff
unixInit.test unixInit-1.2 fail Solaris 9
User & Date: lvirden on 2007-01-19 15:48:43
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    built on sparc solaris 9, sun c compiler.
    
    compiled with
     ./configure  --prefix=/tmp/tcl8414 --enable-shared --enable-symbols --enable-stubs --enable-64bit --enable-threads
    
    unixInit.test
    
    ==== unixInit-1.2 initialisation: standard channel type deduction FAILED
    ==== Contents of test case:
    
        # pipe1 is a connection to a server that reports what port it
        # starts on, and delivers a constant string to the first client to
        # connect to that port before exiting.
        set pipe1 [open "|[list [interpreter]]" r+]
        puts $pipe1 {
            proc accept {channel host port} {
                puts $channel {puts [fconfigure stdin -peername]; exit}
                close $channel
                exit
            }
            puts [fconfigure [socket -server accept 0] -sockname]
            vwait forever  }
        # Note the backslash above; this is important to make sure that the
        # whole string is read before an [exit] can happen...
        flush $pipe1
        set port [lindex [gets $pipe1] 2]
        set sock [socket localhost $port]
        # pipe2 is a connection to a Tcl interpreter that takes its orders
        # from the socket we hand it (i.e. the server we create above.)
        # These orders will tell it to print out the details about the
        # socket it is taking instructions from, hopefully identifying it
        # as a socket.  Which is what this test is all about.
        set pipe2 [open "|[list [interpreter] <@$sock]" r]
        set result [gets $pipe2]
    
        # Clear any pending data; stops certain kinds of (non-important) errors
        fconfigure $pipe1 -blocking 0; gets $pipe1
        fconfigure $pipe2 -blocking 0; gets $pipe2
    
        # Close the pipes and the socket.
        close $pipe2
        close $pipe1
        catch {close $sock}
    
        # Can't use normal comparison, as hostname varies due to some
        # installations having a messed up /etc/hosts file.
        if {
            [string equal 127.0.0.1 [lindex $result 0]] &&
            [string equal $port     [lindex $result 2]]
        } then {
            subst "OK"
        } else {
            subst "Expected: `[list 127.0.0.1 localhost $port]', Got `$result'"
        }
    
    ---- Result was:
    Expected: `127.0.0.1 localhost 41536', Got `0.0.0.0 localhost 41536'
    ---- Result should have been (exact matching):
    OK
    ==== unixInit-1.2 FAILED
    
    
    
  4. foundin changed to: "obsolete: 8.4.14"
  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: "27. Channel Types"
  11. title changed to: "unixInit.test unixInit-1.2 fail Solaris 9"
  12. type changed to: "Bug"