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

[TESTBUG] Get rid of "@library /../../test/lib" in jtreg tests

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b94

      Description

      See CODETOOLS-7901527 for background and more details.

      The use of "@library /../../test/lib" causes the directory "test/lib" to be created in the current directory. Also, any .java file located in /../../test/lib that is explicitly compiled with @build will also end up in this directory (implicitly compiled files do not).

      The ../ notation in jtreg tests is generally discouraged, and support in jtreg has been added to make it so it is no longer necessary. Adding the following to TEST.ROOT:

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

      Makes it so now you can just use:

          * @library /test/lib

      This bug is only meant to address the issue of files/directories being created outside the JTwork directory. It will not address all uses of ../, which are not problematic if they don't take you above the root of the test directory.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cjplummer Chris Plummer
                Reporter:
                cjplummer Chris Plummer
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: