RFR: 8367988: NewFileSystemTests.readOnlyZipFileFailure fails when run by root user [v2]
Brian Burkhalter
bpb at openjdk.org
Fri Sep 19 22:30:14 UTC 2025
On Fri, 19 Sep 2025 08:07:12 GMT, Francesco Andreuzzi <fandreuzzi at openjdk.org> wrote:
>> I propose a small patch to skip a tier2 test which fails when it runs as the root user. The test expects an exception when it tries to open a read-only file as `rw`, but this does not happen for the root user.
>
> Francesco Andreuzzi has updated the pull request incrementally with one additional commit since the last revision:
>
> import
Marked as reviewed by bpb (Reviewer).
test/jdk/jdk/nio/zipfs/NewFileSystemTests.java line 223:
> 221: * read-write mode.
> 222: */
> 223: @Test
If this test were converted to JUnit 5, then I think [@DisabledIf](https://docs.junit.org/current/api/org.junit.jupiter.api/org/junit/jupiter/api/condition/DisabledIf.html) could be used here.
-------------
PR Review: https://git.openjdk.org/jdk/pull/27376#pullrequestreview-3247362550
PR Review Comment: https://git.openjdk.org/jdk/pull/27376#discussion_r2364676894
More information about the nio-dev
mailing list