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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • Classlib
    • None
    • 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 Litani
        2. ThreadTest.patch
          2 kB
          Elena Litani

        Issue Links

          Activity

            People

              varlax Alexey Varlamov
              elena Elena Litani
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: