Skip to content

[11] d/t/jtreg-autopkgtest.*: set jtreg home property correctly.

We have some failing tests in sid due to missing junit.jar in the classpath: FAILED: compiler/aot/jdk.tools.jaotc.test/src/jdk/tools/jaotc/test/collect/jar/JarSourceProviderTest.java

This is caused by the -vmoption:-Djtreg.home that passes jtreg home to the test instead of the jtreg itself. This is openjdk-11-specific problem as openjdk-lts uses -Jjtreg.home. openjdk-17 still have -vmoption:, but it is not critical as it is using jtreg7 that does not need it.

Please merge to opendk-11, optional to openjdk-17

Changes:

  • d/t/jtreg-autopkgtest.{in,sh}: use -J instead of -vmoption to pass jtreg.home property to jtreg. '-vmoption' passes JVM options to the test itself.

Testing:

  • rebuild openjdk-11 after patch was applied:
--------------- jtreg console summary for hotspot ---------------
FAILED: serviceability/sa/ClhsdbCDSCore.java
Test results: passed: 1,958; failed: 1
Warning: unable to find hs_err log for serviceability/sa/ClhsdbCDSCore.jtr
FAILED: serviceability/sa/ClhsdbCDSCore.java
Test results: failed: 1
Warning: unable to find hs_err log for serviceability/sa/ClhsdbCDSCore.jtr
[debian/tests/jtreg-autopkgtest.sh] nothing to cleanup
--------------- jtreg console summary for langtools ---------------
Test results: passed: 3,928
[debian/tests/jtreg-autopkgtest.sh] nothing to cleanup
Unable to compare jtreg results: no build jtreport found for hotspot/amd64.
Reason: '/usr/share/doc/openjdk-11-jre-headless//test-amd64/jtreport-hotspot.tar.gz' does not exist.
--------------- jtreg console summary for jaxp ---------------
Test results: passed: 443
[debian/tests/jtreg-autopkgtest.sh] nothing to cleanup
Unable to compare jtreg results: no build jtreport found for hotspot/amd64.
Reason: '/usr/share/doc/openjdk-11-jre-headless//test-amd64/jtreport-hotspot.tar.gz' does not exist.
--------------- jtreg console summary for jdk ---------------
Test results: passed: 5,364
[debian/tests/jtreg-autopkgtest.sh] nothing to cleanup
  • compiler/aot/jdk.tools.jaotc.test/src/jdk/tools/jaotc/test/collect/jar/JarSourceProviderTest.java passes
  • serviceability/sa/ClhsdbCDSCore.java is a failure to be investigated, not related to the missing junit.jar in the classpath.

Merge request reports

Loading