os.simpleArch is set to x64 for linux-aarch64 platform, but usually arch == x64 means amd64 platforms
next two tests show the problem:
Test.java
/*
* @test
* @requires os.simpleArch == "x64"
*/
public class Test {
public static void main(String[] a) {throw new Error(); }
}
Test2.java:
/*
* @test
* @requires os.simpleArch == "x64" & os.arch != "aarch64"
*/
public class Test2 {
public static void main(String[] a) {throw new Error(); }
}
$JTREG -jdk:$JDK Test.java
Test results: failed: 1
$JTREG -jdk:$JDK Test2.java
Test results: no tests selected
Since aarch64 isn't 64bits Intel, I expect to have no tests selected in both cases.
next two tests show the problem:
Test.java
/*
* @test
* @requires os.simpleArch == "x64"
*/
public class Test {
public static void main(String[] a) {throw new Error(); }
}
Test2.java:
/*
* @test
* @requires os.simpleArch == "x64" & os.arch != "aarch64"
*/
public class Test2 {
public static void main(String[] a) {throw new Error(); }
}
$JTREG -jdk:$JDK Test.java
Test results: failed: 1
$JTREG -jdk:$JDK Test2.java
Test results: no tests selected
Since aarch64 isn't 64bits Intel, I expect to have no tests selected in both cases.