mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-13 11:55:38 +00:00
8351851: Update PmemTest to run on AMD64
Reviewed-by: adinn
This commit is contained in:
parent
0995b9409d
commit
0feecb7c6a
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2019, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2019, 2025, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -77,25 +77,24 @@
|
||||
* make test TEST=jdk/java/nio/MappedByteBuffer/PmemTest.java
|
||||
*/
|
||||
|
||||
/* @test
|
||||
/* @test id=default_architecture_test_case
|
||||
* @summary Testing NVRAM mapped byte buffer support
|
||||
* @run main/manual PmemTest
|
||||
* @requires (os.family == "linux")
|
||||
* @requires (os.arch == "x86_64")
|
||||
* @requires ((os.arch == "x86_64")|(os.arch == "amd64"))
|
||||
*/
|
||||
|
||||
/* @test
|
||||
/* @test id=other_architectures_test_case
|
||||
* @summary Testing NVRAM mapped byte buffer support
|
||||
* @run main/manual PmemTest
|
||||
* @requires (os.family == "linux")
|
||||
* @requires ((os.arch == "amd64")|(os.arch == "aarch64")|(os.arch == "ppc64le"))
|
||||
* @requires ((os.arch == "aarch64")|(os.arch == "ppc64le"))
|
||||
* @ignore The test described here is currently disabled on systems that are not
|
||||
* x64-based and lack an external NVRAM memory device. In order to re-enable the
|
||||
* test, you will need to mount the NVRAM device, which will typically appear as
|
||||
* /dev/pmem0, to the directory /mnt/pmem. Once that is done, you can follow the
|
||||
* instructions above to create a test directory and remove the ignore tag.
|
||||
*/
|
||||
|
||||
import java.io.File;
|
||||
import java.nio.MappedByteBuffer;
|
||||
import java.nio.channels.FileChannel;
|
||||
@ -173,4 +172,4 @@ public class PmemTest {
|
||||
"\n}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user