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
- assignee changed to: "andreas_kupries"
- cmimetype changed to: "text/plain"
- 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 - foundin changed to: "obsolete: 8.4.14"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "lvirden"
- subsystem changed to: "27. Channel Types"
- title changed to: "unixInit.test unixInit-1.2 fail Solaris 9"
- type changed to: "Bug"