Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b94eb87bd5cc2c2750adb5f727db62972c3621a2
Ticket: 438070ffffffffffffffffffffffffffffffffff
unixInit-1.2 failure
User & Date: dgp on 2001-07-02 23:15:43
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    On RedHat Linux 6.2, on Alpha XL-300.
    
    Since the 2001-06-28 commits to
    tests/unixInit.test:
    
    ==== unixInit-1.2 initialisation: channel type
    deduction FAILED
    ==== Contents of test case:
    
        set pipe1 [open |[list $::tcltest::tcltest] r+]
        puts $pipe1 {
            proc accept {channel host port} {
                puts $channel {
                    puts [fconfigure stdin -peername]
                    flush stdout
                    exit
                }
                flush $channel
                close $channel
                exit
            }
            set server [socket -server accept 0]
            puts stdout [fconfigure $server -sockname]
            flush stdout
            update
            vwait forever  }
        flush $pipe1
        set port [lindex [gets $pipe1] 2]
        set sock [socket localhost $port]
        set pipe2 [open |[list $::tcltest::tcltest <@$sock]
    r]
        set result [gets $pipe2]
        close $pipe2
        close $pipe1
        catch {close $sock}
        set expected [list 127.0.0.1 localhost $port]
        if {[string equal $expected $result]} {
            subst "OK"
        } else {
            subst "Expected: $expected, Got $result"
        }
    
    ---- Result was:
    error flushing "stdout": broken pipe
    ---- Result should have been (exact matching):
    OK
    ---- Test generated error; Return code was: 1
    ---- Return code should have been one of: 0 2
    ==== unixInit-1.2 FAILED
    
    The error comes from the [close $pipe2] command.
    
    After I comment out the [flush stdout] that seems to
    be the cause of the trouble:
    
    ==== unixInit-1.2 initialisation: channel type
    deduction FAILED
    ==== Contents of test case:
    ...
    ---- Result was:
    Expected: 127.0.0.1 localhost 2949, Got 127.0.0.1
    localhost.localdomain 2949
    ---- Result should have been (exact matching):
    OK
    ==== unixInit-1.2 FAILED
    
    
  4. foundin changed to: "obsolete: 8.4a3"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dgp"
  9. subsystem changed to: "38. Init - Library - Autoload"
  10. title changed to: "unixInit-1.2 failure"
  11. type changed to: "Bug"