harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vasily Zakharov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-2338) [classlib][luni] tests.api.java.net.ServerSocketTest failed intermittently
Date Wed, 06 Dec 2006 03:12:22 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-2338?page=comments#action_12455850 ] 
Vasily Zakharov commented on HARMONY-2338:

In fact, if starting lastAssignedPort is fixed, test_setReuseAddressZ() runs ok the first
time and fails all the next times.
The reason for that is trivial: at the test case beginning, setReuseAddress(false) is called
and the test case breaks due to a port was open by it's own previous call.
If lastAssignedPort is not fixed, the effect would occur rarely, but would still be possible.
The test passes on Windows as Windows doesn't handle setReuseAddress(false) properly.

Summary: current test design assumes the ports returned by tests.support.Support_PortManager.getNextPort()
are free (this is actual for all test cases), and also are not in TIME_WAIT state (this is
only actual for test_setReuseAddressZ test case). Either this should somehow be guaranteed,
or the test design should be altered essentially.

> [classlib][luni] tests.api.java.net.ServerSocketTest failed intermittently
> --------------------------------------------------------------------------
>                 Key: HARMONY-2338
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2338
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: SuSE 9 ia32 multi-processor
>            Reporter: Alexei Fedotov
> The test failed 2 times from 162 on DRLVM r479662. 

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message