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

[classlib][lini] unit test ThreadTest.test_enumerate$Ljava_lang_Thread() fails intermittently on drlvm

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Classlib
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      The test fails rather often when running the whole luni module with the following message:

      Incorrect value returned2
      junit.framework.AssertionFailedError: Incorrect value returned2 at junit.framework.AssertionFailedError.<init>(AssertionFailedError.java:11) at org.apache.harmony.luni.tests.java.lang.ThreadTest.test_enumerate$Ljava_lang_Thread(ThreadTest.java:357) at java.lang.reflect.VMReflection.invokeMethod(Native Method) 0.000
      test_getContextClassLoader Success

      or

      Incorrect value returned3
      junit.framework.AssertionFailedError: Incorrect value returned3 at junit.framework.AssertionFailedError.<init>(AssertionFailedError.java:11) at org.apache.harmony.luni.tests.java.lang.ThreadTest.test_enumerate$Ljava_lang_Thread(ThreadTest.java:357) at java.lang.reflect.VMReflection.invokeMethod(Native Method) 0.000
      test_getContextClassLoader Success

      It seems that the test should wait until threads are started and then call the enumerate() method.

        Attachments

        1. H-1974ThreadTest_2.patch
          5 kB
          Elena Semukhina
        2. ThreadTest.patch
          2 kB
          Elena Semukhina

          Issue Links

            Activity

              People

              • Assignee:
                varlax Alexey Varlamov
                Reporter:
                elena Elena Semukhina
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: