RFR: 8322881: [TESTBUG]java/nio/file/Files/CopyMoveVariations.java fails when run with non-root user

SendaoYan syan at openjdk.org
Sun Jan 28 16:13:33 UTC 2024


On Sun, 28 Jan 2024 15:59:26 GMT, SendaoYan <syan at openjdk.org> wrote:

> 8322881: [TESTBUG]java/nio/file/Files/CopyMoveVariations.java fails when run with non-root user

Before this PR, this testcase run fail with non-root user. I think the testcase author run this testcase with root user or privilege users. I think it's necessary to make tests run pass with non-root users.

When run this test case with root user, it will not cause java.nio.file.AccessDeniedException in any cases, do the test case bug will not expose.


Before the patch apply, the testcase run fail with non-root user:

![image](https://github.com/openjdk/jdk/assets/24123821/a02ad085-6180-4edd-a16b-37a98bf9f88f)


After the patch apply, the testcase run pass with non-root user:

![image](https://github.com/openjdk/jdk/assets/24123821/992d12d3-640d-49b7-bac6-3226682384b3)

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

PR Comment: https://git.openjdk.org/jdk/pull/17606#issuecomment-1913646775


More information about the nio-dev mailing list