RFR: 8367988: NewFileSystemTests.readOnlyZipFileFailure fails when run by root user [v2]

Jaikiran Pai jpai at openjdk.org
Fri Sep 19 09:54:10 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

This looks OK to me. I think it might have been better if we had a `@requires` instruction for this, but we don't have that right now. So it's OK to use this construct instead.

Please wait a while before integrating - it would be good to hear from Alan @AlanBateman or Brian @bplb if this change is OK.

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

Marked as reviewed by jpai (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/27376#pullrequestreview-3244083627


More information about the nio-dev mailing list