RFR: JDK-8266254: Update to use jtreg 6

Matthias Klose doko at ubuntu.com
Thu Jul 1 11:28:26 UTC 2021


On 6/2/21 6:25 PM, Jonathan Gibbons wrote:
> Please review the change to update to using jtreg 6. 
> 
> The primary change is to the jib-profiles.js file, which specifies the version of jtreg to use, for those systems that rely on this file. In addition, the `requiredVersion` has been updated in the various `TEST.ROOT` files.
> 
> All the tests that could be updated ahead of time have been updated. There are a few tests remaining that need to be done at this time, because of the change in the module name for TestNG 7.3. It changed from a default of `testng` to and explicit `org.testng`.
> 
> -------------
> 
> Commit messages:
>  - JDK-8266254: Update to use jtreg 6
> 
> Changes: https://git.openjdk.java.net/jdk/pull/4315/files
>  Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=4315&range=00
>   Issue: https://bugs.openjdk.java.net/browse/JDK-8266254
>   Stats: 17 lines in 11 files changed: 0 ins; 1 del; 16 mod
>   Patch: https://git.openjdk.java.net/jdk/pull/4315.diff
>   Fetch: git fetch https://git.openjdk.java.net/jdk pull/4315/head:pull/4315
> 
> PR: https://git.openjdk.java.net/jdk/pull/4315

what's the status of this?  Trying to run the tests for 17+29 using jtreg 6+1, I
get:

+ jtreg -conc:auto -verbose:summary -automatic -retain:none -ignore:quiet
-agentvm -timeout:5 -workDir:/tmp//hotspot/JTwork
-reportDir:jtreg-test-output//hotspot//0/JTreport
-jdk:build/bootcycle-build/images/jdk
-exclude:test/hotspot/jtreg/ProblemList.txt -dir:test/hotspot/jtreg
:hotspot_compiler :hotspot_gc :hotspot_runtime :hotspot_serviceability
Error: Unexpected exception occurred! java.lang.NumberFormatException: For input
string: "6+1"
java.lang.NumberFormatException: For input string: "6+1"
        at
java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:67)
        at java.base/java.lang.Integer.parseInt(Integer.java:668)
        at java.base/java.lang.Integer.parseInt(Integer.java:786)
        at com.sun.javatest.regtest.tool.Version.parseDottedInts(Version.java:166)
        at com.sun.javatest.regtest.tool.Version.compareTo(Version.java:185)
        at com.sun.javatest.regtest.tool.Tool.run(Tool.java:1131)
        at com.sun.javatest.regtest.tool.Tool.run(Tool.java:1079)
        at com.sun.javatest.regtest.tool.Tool.main(Tool.java:148)
        at com.sun.javatest.regtest.Main.main(Main.java:58)
+ exit_code=6

Matthias



More information about the build-dev mailing list