Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8148867

Tests sample/chatserver/ChatTest.java and sample/mergesort/MergeSortTest.java depend on code which is out of the testsuite

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 7, 8, 9
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:

      Description

      Two jdk regression tests:
        sample/chatserver/ChatTest.java
        sample/mergesort/MergeSortTest.java
      use classes which are not part of the regression test suite:
      MergeSortTest.java: * @library ../../../src/sample/share/forkjoin/mergesort
      ChatTest.java: * @library ../../../src/sample/share/nio/chatserver

      Trying to run them with new jtreg build (jtreg 4.1 b13) will lead to errors like:

      test result: Error. effective library path is outside the test suite: ../src/sample/share/nio/chatserver

      The reference looks very suspect, because there is no guarantee that the src/ or src/sample data will be available when the tests are run.

      The tests should be updated to not use such classes.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mli Hamlin Li
              Reporter:
              dfazunen Dmitry Fazunenko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: