RFR: CODETOOLS-7903251: ProblemList test fails on M1 Mac

Iris Clark iris at openjdk.org
Fri Aug 12 01:50:37 UTC 2022


On Fri, 12 Aug 2022 01:28:42 GMT, Jonathan Gibbons <jjg at openjdk.org> wrote:

> Please review a test fix for a jtreg self-test.(There's also an update to a comment in a source file.)
> 
> This one is somewhat interesting.  Despite the name `System.getProperty("os.arch")` depends on the JDK being run, more than anything derived from `uname`.  In particular, for older JDKs on an M1 Mac, they report `os.arch` as the older `x86_64`, since older JDKs, up to JDK 11.0.15 inclusive, do not come as `aarch64` binaries.   But newer JDKs do report `os.arch` as `aarch64`.   
> 
> The fix for the test is to use the JDK being tested to update the problem-list template with the values that it will recognize when used as the test OS.  Tested with `JDKHOME` set to  JDK 11.0.15 and JDK 17.

Marked as reviewed by iris (Reviewer).

-------------

PR: https://git.openjdk.org/jtreg/pull/102


More information about the jtreg-dev mailing list