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

[drlvm] ThreadGroupTest of classlib fails

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Classlib, DRLVM
    • Labels:
      None
    • Environment:
      Linux IA32 multiprocessor

      Description

      The org.apache.harmony.luni.tests.java.lang.ThreadGroupTest stably fails if run individually:

      1) <testcase classname="org.apache.harmony.luni.tests.java.lang.ThreadGroupTest" name="test_setMaxPriorityI" time="0.053">
      <failure message="setMaxPriority: Any value smaller than MIN_PRIORITY is adjusted to MIN_PRIORITY. Before: 10 , after: 10" type="junit.framework.AssertionFailedError">junit.framework.AssertionFailedError: setMaxPriority: Any value smaller than MIN_PRIORITY is adjusted to MIN_PRIORITY. Before: 10 , after: 10
      at junit.framework.AssertionFailedError.<init>(AssertionFailedError.java:11)
      at org.apache.harmony.luni.tests.java.lang.ThreadGroupTest.test_setMaxPriorityI(ThreadGroupTest.java:648)
      at java.lang.reflect.VMReflection.invokeMethod(Native Method)

      2) <testcase classname="org.apache.harmony.luni.tests.java.lang.ThreadGroupTest" name="test_suspend" time="3.86">
      <error message="The thread group Test group is not empty" type="java.lang.IllegalThreadStateException">java.lang.IllegalThreadStateException: The thread group Test group is not empty
      at java.lang.ThreadGroup.destroy(Unknown Source)
      at org.apache.harmony.luni.tests.java.lang.ThreadGroupTest.test_suspend(ThreadGroupTest.java:856)
      at java.lang.reflect.VMReflection.invokeMethod(Native Method)

      3) <testcase classname="org.apache.harmony.luni.tests.java.lang.ThreadGroupTest" name="test_list" time="0.213">
      <failure message="Either 'list' is wrong or other tests are leaving side-effects. Result from list: ----------------- java.lang.ThreadGroup[name=system,maxpri=10] Thread[Thread-1,5,system] Thread[Thread-0,5,system] Thread[System thread,5,system] java.lang.ThreadGroup[name=Finalizer Threads Group,maxpri=10] Thread[FinalizerThread,5,Finalizer Threads Group] java.lang.ThreadGroup[name=activeCount,maxpri=10] java.lang.ThreadGroup[name=Test group,maxpri=10] ----------------- " type="junit.framework.AssertionFailedError">junit.framework.AssertionFailedError: Either 'list' is wrong or other tests are leaving side-effects.
      Result from list:
      -----------------
      java.lang.ThreadGroup[name=system,maxpri=10]
      Thread[Thread-1,5,system]
      Thread[Thread-0,5,system]
      Thread[System thread,5,system]
      java.lang.ThreadGroup[name=Finalizer Threads Group,maxpri=10]
      Thread[FinalizerThread,5,Finalizer Threads Group]
      java.lang.ThreadGroup[name=activeCount,maxpri=10]
      java.lang.ThreadGroup[name=Test group,maxpri=10]

      -----------------

      at org.apache.harmony.luni.tests.java.lang.ThreadGroupTest.test_list(ThreadGroupTest.java:481)
      at java.lang.reflect.VMReflection.invokeMethod(Native Method)

      This test sporadically crashes when all luni tests are run, but that is probably another story.

        Attachments

        1. H-1625_kernel_tests.patch
          0.7 kB
          Elena Semukhina
        2. H-1625_ThreadGroup.patch
          0.9 kB
          Elena Semukhina
        3. H-1625_ThreadGroupTest.patch
          4 kB
          Elena Semukhina
        4. ThreadGroupTest.patch
          4 kB
          Elena Semukhina

          Issue Links

            Activity

              People

              • Assignee:
                geir Geir Magnusson Jr
                Reporter:
                varlax Alexey Varlamov
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: