RFR: 8351851: Update PmemTest to run on AMD64 [v2]
Ivan Šipka
isipka at openjdk.org
Thu Apr 17 14:46:42 UTC 2025
On Thu, 17 Apr 2025 14:40:56 GMT, Ivan Šipka <isipka at openjdk.org> wrote:
>> Remove default OS platform linux x86_64, remove @ignores allowing amd64 as a viable OS platform selection
>
> Ivan Šipka has updated the pull request incrementally with two additional commits since the last revision:
>
> - removing accidentally added files, reverting to two test cases bu removing @ignores directive and adding test ids
> - copyright update
changes:
- removed @ignores tag
and split to two test cases:
- `@requires ((os.arch == "x86_64")|(os.arch == "amd64"))` with id `default_architecture_test_case`
- `@requires ((os.arch == "aarch64")|(os.arch == "ppc64le"))` with id `other_architectures_test_case`
local test shows that requires directive resolves properly as well as the test id is applied
jtreg -version
jtreg 7.6+1-12
Installed in /home/isipka/apps/jtreg/jtreg-7.6+1/lib/jtreg.jar
Running on platform version 25-ea from /home/isipka/.sdkman/candidates/java/25.ea.9-open.
Built with Java(TM) 2 SDK, Version 11.0.16+11-LTS-199 on February 06, 2025.
Copyright (c) 1999, 2022, Oracle and/or its affiliates. All rights reserved.
Use is subject to license terms.
JT Harness, version 6.0 ea b24 (September 27, 2022)
Java Assembler Tools, version 7.0 ea b09 (June 04, 2020)
TestNG: testng-7.3.0.jar, jcommander-1.82.jar, guice-5.1.0.jar
JUnit: junit-platform-console-standalone-1.11.0.jar
jtreg -verbose:esa java/nio/MappedByteBuffer/PmemTest.java
failed to get value for jdk.static
java.lang.UnsatisfiedLinkError: 'boolean jdk.test.whitebox.WhiteBox.isStatic()'
at jdk.test.whitebox.WhiteBox.isStatic(Native Method)
at requires.VMProps.isStatic(VMProps.java:830)
at requires.VMProps$SafeMap.put(VMProps.java:82)
at requires.VMProps.call(VMProps.java:145)
at requires.VMProps.call(VMProps.java:67)
at com.sun.javatest.regtest.agent.GetJDKProperties.run(GetJDKProperties.java:80)
at com.sun.javatest.regtest.agent.GetJDKProperties.main(GetJDKProperties.java:54)
runner starting test: java/nio/MappedByteBuffer/PmemTest.java#default_architecture_test_case
runner finished test: java/nio/MappedByteBuffer/PmemTest.java#default_architecture_test_case
Failed. Execution failed: `main' threw exception: java.nio.file.NoSuchFileException: /mnt/pmem/test/pmemtest
Test results: failed: 1; did not meet platform requirements: 1
Report written to /home/isipka/workspace/jdk/open/test/jdk/JTreport/html/report.html
Results written to /home/isipka/workspace/jdk/open/test/jdk/JTwork
Error: Some tests failed or other problems occurred.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/24416#issuecomment-2813184298
More information about the nio-dev
mailing list