The test checks whether writing to a read-only directory throws a `IOException`. This test is not applicable when the user running the test is root. Thus, I propose to skip it.
I converted the class to several JUnit tests, so we can use `@DisabledIf`. ------------- Commit messages: - nn - cc - convert to junit and skip Changes: https://git.openjdk.org/jdk/pull/27542/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27542&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8368846 Stats: 50 lines in 1 file changed: 16 ins; 10 del; 24 mod Patch: https://git.openjdk.org/jdk/pull/27542.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/27542/head:pull/27542 PR: https://git.openjdk.org/jdk/pull/27542
