-
Enhancement
-
Resolution: Fixed
-
P3
-
8
-
b55
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8018629 | 7u45 | Jonathan Gibbons | P3 | Closed | Fixed | b01 |
JDK-8008442 | 7u40 | Jonathan Gibbons | P3 | Closed | Fixed | b14 |
JDK-8010613 | 7u25 | Jonathan Gibbons | P3 | Closed | Fixed | b03 |
JDK-8008891 | 7u21 | Jonathan Gibbons | P3 | Closed | Fixed | b02 |
Currently, jtreg incorrectly confuses the concept of the /directory/ in which the test's class will be written with the /classpath/ used to locate all of the test's classes, including any library classes. It provides env variable TESTCLASSES and system property test.classes, and tests use these to mean both a directory and a classpath.
jtreg will be fixed to separate the two concepts, such that TESTCLASSES/test.classes will continue to mean the /directory/ in which the test's class will the written, and will introduce TESTCLASSPATH/test.class.path for the classpath used to locate all the test's classes.
This change only affects a small number of tests, which use both @library and TESTCLASSES. A number of serviceability tests are affected,
FAILED: sun/tools/jcmd/jcmd-big-script.sh
FAILED: sun/tools/jcmd/jcmd-f.sh
FAILED: sun/tools/jcmd/jcmd-help-help.sh
FAILED: sun/tools/jcmd/jcmd-pid.sh
FAILED: sun/tools/jinfo/Basic.sh
FAILED: sun/tools/jmap/Basic.sh
FAILED: sun/tools/jps/jps-m_2.sh
FAILED: sun/tools/jps/jps-Vvml_2.sh
FAILED: sun/tools/jstack/Basic.sh
However, all the failures are caused by issues in shared library code, meaning that only that code needs to be updated.
jtreg will be fixed to separate the two concepts, such that TESTCLASSES/test.classes will continue to mean the /directory/ in which the test's class will the written, and will introduce TESTCLASSPATH/test.class.path for the classpath used to locate all the test's classes.
This change only affects a small number of tests, which use both @library and TESTCLASSES. A number of serviceability tests are affected,
FAILED: sun/tools/jcmd/jcmd-big-script.sh
FAILED: sun/tools/jcmd/jcmd-f.sh
FAILED: sun/tools/jcmd/jcmd-help-help.sh
FAILED: sun/tools/jcmd/jcmd-pid.sh
FAILED: sun/tools/jinfo/Basic.sh
FAILED: sun/tools/jmap/Basic.sh
FAILED: sun/tools/jps/jps-m_2.sh
FAILED: sun/tools/jps/jps-Vvml_2.sh
FAILED: sun/tools/jstack/Basic.sh
However, all the failures are caused by issues in shared library code, meaning that only that code needs to be updated.
- backported by
-
JDK-8008442 update tests for upcoming changes for jtreg
-
- Closed
-
-
JDK-8008891 update tests for upcoming changes for jtreg
-
- Closed
-
-
JDK-8010613 update tests for upcoming changes for jtreg
-
- Closed
-
-
JDK-8018629 update tests for upcoming changes for jtreg
-
- Closed
-
- relates to
-
JDK-7194032 TEST_BUG: update tests for upcoming changes for jtreg
-
- Closed
-