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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 9
    • 9
    • hotspot
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: