[jdk21u-dev] RFR: 8341881: [REDO] java/nio/file/attribute/BasicFileAttributeView/CreationTime.java#tmp fails on alinux3
SendaoYan
syan at openjdk.org
Wed Dec 18 09:34:37 UTC 2024
On Sat, 19 Oct 2024 08:00:47 GMT, SendaoYan <syan at openjdk.org> wrote:
> Hi all,
>
> This pull request contains a backport of commit [f56a1541](https://github.com/openjdk/jdk/commit/f56a154132f7e66b1b65adfa2aa937119999b14a) from the [openjdk/jdk](https://git.openjdk.org/jdk) repository.
>
> The commit being backported was authored by SendaoYan on 14 Oct 2024 and was reviewed by Chen Liang, Severin Gehwolf, Magnus Ihse Bursie and Brian Burkhalter.
>
> The original PR use FFM API to call native library, but we can't use FFM API in jdk21u directly, and the original PR dependency the file `test/lib/native/export.h`, this file not exists in jdk21 repository. So we use JNI instead of FFM API. Before this PR, the file `test/jdk/java/nio/file/attribute/BasicFileAttributeView/libCreationTimeHelper.c` and `test/jdk/java/nio/file/attribute/BasicFileAttributeView/CreationTimeHelper.java` already exists cause this PR can't backport cleanly.
>
> Additional testing:
>
> - [x] linux-x64 build at alinux3, and run the test passed.
> - [x] linux-x64 build at centos7 docker container, and run the test passed.
> - [x] linux-64 compile libCreationTimeHelper.c at `centos6 docker container(glibc2.12)` by gcc 11.2.0 use below command
>
> `libCreationTimeHelper.c` compile test command:
>
> gcc test/jdk/java/nio/file/attribute/BasicFileAttributeView/libCreationTimeHelper.c -Ibuild/linux-x86_64-server-release/jdk/include -I build/linux-x86_64-server-release/jdk/include/linux -c
>
>
> Thanks!
Thanks all for the reviews.
-------------
PR Comment: https://git.openjdk.org/jdk21u-dev/pull/1068#issuecomment-2550826485
More information about the jdk-updates-dev
mailing list