intermittent test failure in CleanupDirTests.agentvm.conc

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: tools
    • None

      CleanupDirTests.agentvm.conc intermittently fails due to the failing assertion:
      'Test results: passed: 8'
      but the jt.log files contains:
      Test results: passed: 7.

      This happens due to TestStats finishedTest() lacking synchronized keyword[1]. The updates to the test counts can happen concurrently.

      [1] https://github.com/openjdk/jtreg/blob/34ccc66ec89651637811678a17d3f810b4ac0780/src/share/classes/com/sun/javatest/regtest/report/TestStats.java#L102

            Assignee:
            Unassigned
            Reporter:
            Vladimir Petko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: