Tcl 8.0.5 make test fails two tests 
Author Message
 Tcl 8.0.5 make test fails two tests

Tcl 8.0.5 Bug:  Generated by Scriptics' bug entry form at
        http://www.*-*-*.com/
Responses to this post are encouraged.
------

Submitted by:  Larry W. Virden
OperatingSystem:  Sun Solaris
OperatingSystemVersion:  2.6
Extensions:  none
CustomShell:  none
Synopsis:  Tcl 8.0.5 make test fails two tests

ReproducibleScript:
    I downloaded the new tar file, did a configure on my platform and then a
    make all test .

ObservedBehavior:
    Two of the tests failed:

    event.test

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

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

    and then later

    socket.test

    ==== socket-11.8 client with several servers
    ==== Contents of test case:

        sendCommand {
            set s1 [socket -server "accept 4003" 4003]
            set s2 [socket -server "accept 4004" 4004]
            set s3 [socket -server "accept 4005" 4005]
            proc accept {mp s a p} {
                puts $s $mp
                close $s
            }
        }
        set s1 [socket $remoteServerIP 4003]
        set s2 [socket $remoteServerIP 4004]
        set s3 [socket $remoteServerIP 4005]
        set l ""
        lappend l [gets $s1] [gets $s1] [eof $s1] [gets $s2] [gets $s2] [eof
    $s2]  [
    gets $s3] [gets $s3] [eof $s3]
        close $s1
        close $s2
        close $s3
        sendCommand {
            close $s1
            close $s2
            close $s3
        }
        set l

    ==== Result was:
    4003 {} 1 4004 {} 1 {} {} 1
    ---- Result should have been:
    4003 {} 1 4004 {} 1 4005 {} 1
    ---- socket-11.8 FAILED

DesiredBehavior:
    I expect to see either the tests work, or a note
    from the test suite saying that the test was skipped, or
    a note saying to ignore a particular kind of 'error'
    as being unimportant.

Comments:
    The first is a pretty common error - there's been discussion
    over numerous releases about a fix for it.  I just don't
    recall whether anyone has submitted it to date to the
    bug database.  The other however seems a bit more disconcerting.



Sun, 26 Aug 2001 03:00:00 GMT  
 Tcl 8.0.5 make test fails two tests

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

:     ==== Test generated error:
:     couldn't open socket: address already in use

:             set s1 [socket -server "accept 4003" 4003]
:             set s2 [socket -server "accept 4004" 4004]
:             set s3 [socket -server "accept 4005" 4005]

:         set s1 [socket $remoteServerIP 4003]
:         set s2 [socket $remoteServerIP 4004]
:         set s3 [socket $remoteServerIP 4005]

: Comments:
:     The first is a pretty common error - there's been discussion
:     over numerous releases about a fix for it.  I just don't
:     recall whether anyone has submitted it to date to the
:     bug database.  The other however seems a bit more disconcerting.

I suggest you refine your bug report that no hardcoded server port shall
be used, but instead 0 and fconfigure to get the actual one.




Mon, 27 Aug 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. build and test of latest tcl fails one test suite

2. event.test , fCmd.test : Error testing Tcl with Linux v2.0.7

3. Two Tk test suite cases fail

4. Why failed the Marshal-test in nmake test?

5. 6 failed test - make test

6. tests/stringObj.test fails on multibyte locale

7. make test : 148 tests failed

8. Fails test: pkgMkIndex.test

9. test test test test

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

11. tcl 8.4.5 test fails incorrectly in AFS

12. Tcl 8.4.4 SunOS 5.5.1 failed tests

 

 
Powered by phpBB® Forum Software