Tcl 8.0b2 test fail - Solaris 2.4/SPARC/Sun compiler 
Author Message
 Tcl 8.0b2 test fail - Solaris 2.4/SPARC/Sun compiler

On the above environment, where the Sun compiler is version
cc: WorkShop Compilers 4.2 30 Oct 1996 C 4.2
I get the following failure:
event.test

==== event-11.5 Tcl_VwaitCmd procedure: round robin scheduling, 2 sources
==== Contents of test case:

    set f1 [open test1 w]
    proc accept {s args} {
        puts $s foobar
        close $s
    }
    set s1 [socket -server accept 5000]
    set s2 [socket 127.0.0.1 5000]
    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
--

<URL: http://www.*-*-*.com/ %7Elvirden/> <*> O- "We are all Kosh."
Unless explicitly stated to the contrary, nothing in this posting should
be construed as representing my employer's opinions.



Wed, 22 Dec 1999 03:00:00 GMT  
 Tcl 8.0b2 test fail - Solaris 2.4/SPARC/Sun compiler


:     set s1 [socket -server accept 5000]
:     set s2 [socket 127.0.0.1 5000]

: couldn't open socket: address already in use

That's lazy programming! There's no guarantee that a particular port >1024
isn't in use on a system. Better use:
      set s1 [socket -server accept 0]
      set s2 [socket 127.0.0.1 [lindex [fconfigure $s1 -sockname ] 2]]




Sat, 25 Dec 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Tk 8.0b2 test results for Solaris 2.4/SPARC/Sun compiler

2. Solaris 2.4, SPARC 1+, 8 bit color board, Sun's cc, Tk 4.0, test failure

3. make test dumps core - Solaris/Sparc 2.4

4. ? Tcl-dp4.0b2 not work on Solaris 2.4

5. gcc 2.7.2, sparc-solaris 2.4, and tcl 7.5

6. TCL test clock-9.1 on Solaris 5.8 Sparc fails

7. Compiling Tcl/Tk 8.0 on Sun Solaris 2.4

8. Compiling TCL 7.5a2 on SUN Netra running Solaris 2.4

9. Tcl failing on Solaris 2.4

10. Tcl 7.5 [penultimate] Solaris 2.4 test question

11. installing Tk4.0b2 - need TkReadDataPending routine for SOLARIS 2.4

12. Solaris 2.4, tk4.0b2, and TkReadDataPending

 

 
Powered by phpBB® Forum Software