RFR: 8367988: NewFileSystemTests.readOnlyZipFileFailure fails when run by root user [v2]
Alan Bateman
alanb at openjdk.org
Sat Sep 20 06:56:14 UTC 2025
On Sat, 20 Sep 2025 06:21:44 GMT, Francesco Andreuzzi <fandreuzzi at openjdk.org> wrote:
>> 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.
>
> I wanted to get rid of this test failure, I'll file a ticket to follow up with conversion to JUnit 5 for this and a couple other adjacent test classes
> 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.
Yes, or the Assumptions API, both would work.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27376#discussion_r2365371202
More information about the nio-dev
mailing list