Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-3046

[classli][luni] intermittent failures of tests.api.java.net.DatagramSocketTest

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • Classlib
    • None
    • winXP, msvs, debug, r498914

    Description

      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=<PATH_TO_JRE>
      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)

      Attachments

        1. H-3046_1.patch
          40 kB
          Mikhail Markov
        2. H-3046.patch
          32 kB
          Mikhail Markov

        Issue Links

          Activity

            People

              zakha Alexei Zakharov
              tatyana.v.doubtsova@intel.com tatyana doubtsova
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: