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

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 7, 8, 9
    • core-libs

      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.

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

              Created:
              Updated:
              Resolved: