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

Jonathan Gibbons jjg at openjdk.org
Fri Aug 12 14:34:34 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.

This pull request has now been integrated.

Changeset: daf8eb9c
Author:    Jonathan Gibbons <jjg at openjdk.org>
URL:       https://git.openjdk.org/jtreg/commit/daf8eb9c0c1560ed1690d93fdfdd445699400749
Stats:     68 lines in 3 files changed: 57 ins; 7 del; 4 mod

7903251: ProblemList test fails on M1 Mac

Reviewed-by: iris

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

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


More information about the jtreg-dev mailing list