Harmony
  1. Harmony
  2. HARMONY-1955

[classlib][luni] org.apache.harmony.luni.tests.java.lang.ThreadGroupTest fails

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Classlib
    • Labels:
      None
    • Estimated Complexity:
      Novice

      Description

      Elena Semukhina wrote at HARMONY-1625:

      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 [...]

      test_suspend fails because it tries to destroy a non-empty group containing suspended threads. I suggest to change the test so that it stops the threads and then destroys the group.

      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. [...]

      test_list fails because it verifies the length of the output string. The output on drlvm is quite correct but longer than expected. I suggest to change the test so that it checks the output in more smart way.

      See also http://wiki.apache.org/harmony/Unit_Tests_Pass_on_DRLVM

      1. H-1625_ThreadGroupTest.patch
        4 kB
        Elena Semukhina
      2. ThreadGroupTest-1.patch
        0.7 kB
        Andrey Chernyshev

        Activity

          People

          • Assignee:
            Alexey Varlamov
            Reporter:
            Alexei Fedotov
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development