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

[TEST_BUG] jdk/test/sample fails with "effective library path is outside the test suite"

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 6u121, 7u111, 8u102, 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Resolved In Build:
      b110

      Backports

        Description

        sample/chatserver/ChatTest.java

        This test is for testing the sample chat server (jdk/src/sample/share/nio/chatserver), it needs to access code "outside the test suite" and it uses:

         * @library ../../../src/sample/share/nio/chatserver

        With the change of CODETOOLS-7901585, test then start failing since jtreg4.1/b13:
        test result: Error. effective library path is outside the test suite: ../src/sample/share/nio/chatserver

        Same issue for sample/mergesort/MergeSortTest.java

          Issue Links

            Activity

            Hide
            amlu Amy Lu added a comment -
            Test seems should use (TEST.properties):

            external.lib.roots = ../../..

            instead of
            * @library ../../../src/sample/share/nio/chatserver
            Show
            amlu Amy Lu added a comment - Test seems should use (TEST.properties): external.lib.roots = ../../.. instead of * @library ../../../src/sample/share/nio/chatserver
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/dbb0fd7f2a2b
            User: amlu
            Date: 2016-03-08 01:33:25 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/dbb0fd7f2a2b User: amlu Date: 2016-03-08 01:33:25 +0000
            Hide
            snikandrova Svetlana Nikandrova (Inactive) added a comment - - edited
            Need to backport in jdk 8:

            http://aurora.ru.oracle.com/functional/faces/RunDetails.xhtml?names=1337497.CORELIBS-JDK8u-NIGHTLY-JTREG-11

            RULE "sample/chatserver/ChatTest.java" StatusError effective library path is outside the test suite: .../src/share/sample/nio/chatserver

            RULE "sample/mergesort/MergeSortTest.java" StatusError effective library path is outside the test suite: .../src/share/sample/forkjoin/mergesort
            Show
            snikandrova Svetlana Nikandrova (Inactive) added a comment - - edited Need to backport in jdk 8: http://aurora.ru.oracle.com/functional/faces/RunDetails.xhtml?names=1337497.CORELIBS-JDK8u-NIGHTLY-JTREG-11 RULE "sample/chatserver/ChatTest.java" StatusError effective library path is outside the test suite: .../src/share/sample/nio/chatserver RULE "sample/mergesort/MergeSortTest.java" StatusError effective library path is outside the test suite: .../src/share/sample/forkjoin/mergesort
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/dbb0fd7f2a2b
            User: lana
            Date: 2016-03-14 15:55:07 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/dbb0fd7f2a2b User: lana Date: 2016-03-14 15:55:07 +0000

              People

              • Assignee:
                xiaofeya Felix Yang
                Reporter:
                amlu Amy Lu
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: