RFR: 8367988: NewFileSystemTests.readOnlyZipFileFailure fails when run by root user
SendaoYan
syan at openjdk.org
Fri Sep 19 05:58:30 UTC 2025
On Thu, 18 Sep 2025 22:03:09 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.
test/jdk/jdk/nio/zipfs/NewFileSystemTests.java line 225:
> 223: public void readOnlyZipFileFailure() throws IOException {
> 224: if (Platform.isRoot()) {
> 225: throw new org.testng.SkipException("Test skipped when executed by root user.");
Suggestion:
throw new SkipException("Test skipped when executed by root user.");
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27376#discussion_r2361857304
More information about the nio-dev
mailing list