Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 88845 invoked from network); 27 Feb 2007 06:58:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Feb 2007 06:58:27 -0000 Received: (qmail 73790 invoked by uid 500); 27 Feb 2007 06:58:36 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 73685 invoked by uid 500); 27 Feb 2007 06:58:35 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 73569 invoked by uid 99); 27 Feb 2007 06:58:35 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Feb 2007 22:58:35 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Feb 2007 22:58:26 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id F0F7971404A for ; Mon, 26 Feb 2007 22:58:05 -0800 (PST) Message-ID: <14181467.1172559485984.JavaMail.jira@brutus> Date: Mon, 26 Feb 2007 22:58:05 -0800 (PST) From: "Mikhail Markov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-3046) [classli][luni] intermittent failures of tests.api.java.net.DatagramSocketTest In-Reply-To: <26154619.1169637589207.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-3046?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mikhail Markov updated HARMONY-3046: ------------------------------------ Attachment: H-3046_1.patch Here is the updated patch fixing all UDP tests, i.e. DatagramSocketTest, MulticastSocketTest and DatagramPacketTest which could intermittently fail. Fix description (the same as for HARMONY-2860): I've modified the way of obtaining available ports for the UDP-testing tests: right now instead of multiple calls to getNextPortForUDP(), the test is expected to call only once a newly introduced method: getNextPortsForUDP(int ports_num) method reserving the requested number of ports and returning the array containing these ports numbers. After that all ports in the test should be chosen from the pool returned by this method and no no-arg constructor or constructor with zero port of DatagramSocket() (or MulticastSocket()) should be used in the tests explicitly. As the fix for HARMONY-2860 is integrated and looks ok for the several test runs, this patch also could be applied. > [classli][luni] intermittent failures of tests.api.java.net.DatagramSocketTest > ------------------------------------------------------------------------------ > > Key: HARMONY-3046 > URL: https://issues.apache.org/jira/browse/HARMONY-3046 > Project: Harmony > Issue Type: Bug > Components: Classlib > Environment: winXP, msvs, debug, r498914 > Reporter: tatyana doubtsova > Assigned To: Alexei Zakharov > Attachments: H-3046.patch, H-3046_1.patch > > > The luni module test tests.api.java.net.DatagramSocketTest seems to be unstable. > While iterative cc run tests.api.java.net.DatagramSocketTest failed 1 time out og 50: > test_connectLjava_net_InetAddressIClass: tests.api.java.net.DatagramSocketTest > junit.framework.AssertionFailedError: Failed to set up datagram server for native connected Dgram socket test > at tests.api.java.net.DatagramSocketTest.test_connectLjava_net_InetAddressI(DatagramSocketTest.java:299) > at java.lang.reflect.VMReflection.invokeMethod(Native Method) > Running the test separately: > #!sh > JRE_HOME= > A=0 > while [ "$A" -lt "50" ]; do - > ant -Dbuild.module=luni -Dhy.test.forkmode=once -Dhy.test.vm.name=drl \ > -Dtest.jre.home=$JRE_HOME \ > -Dtest.case=tests.api.java.net.DatagramSocketTest test 2>&1 | tee test.log > R=`grep "BUILD FAILED" test.log | wc -l` > if [ "$R" = 0 ]; then > rm -rf build/test_report > else > mv build/test_report build/test_report_${A} > fi > A=`expr $A + 1` > done > I observed 2 more failures (also 1 time outof 50): > test_getPort Failure > unexpected exception during getPort test : The address is already in use > junit.framework.AssertionFailedError: unexpected exception during getPort test : The address is already in use at tests.api.java.net.DatagramSocketTest.test_getPort(DatagramSocketTest.java:672) at java.lang.reflect.VMReflection.invokeMethod(Native Method) > test_receiveLjava_net_DatagramPacket Failure > port 1899 Exception: java.net.SocketTimeoutException: The operation timed out during oversize send test > junit.framework.AssertionFailedError: port 1899 Exception: java.net.SocketTimeoutException: The operation timed out during oversize send test at tests.api.java.net.DatagramSocketTest.receive_oversize_java_net_DatagramPacket(DatagramSocketTest.java:1991) at tests.api.java.net.DatagramSocketTest.test_receiveLjava_net_DatagramPacket(DatagramSocketTest.java) at java.lang.reflect.VMReflection.invokeMethod(Native Method) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.