Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8289798 Update to use jtreg 7
  3. JDK-8292315

Tests should not rely on specific JAR file names (hotspot)

    XMLWordPrintable

Details

    • b12

    Backports

      Description

        There are tests that rely on specific JAR file names being present at run-time, which they don't control, as they are normally provided by jtreg's binary image. Examples for such JAR files names are:

        - junit.jar
        - hamcrest.jar
        - testng.jar

        These tests expect those specific JAR files being present in:

        - jtreg's lib directory
        - the value returned by System.getProperty("java.class.path")

        Here is one such test in question:

        https://github.com/openjdk/jdk/blob/master/test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/CDSStreamTestDriver.java

        There may be more under "test/hotspot"

        Attachments

          Issue Links

            Activity

              People

                cstein Christian Stein
                cstein Christian Stein
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: