RFR: 8368846: java/io/File/createTempFile/TargetDirectory fails when run by root user [v2]
Brian Burkhalter
bpb at openjdk.org
Fri Oct 10 01:02:12 UTC 2025
On Fri, 10 Oct 2025 00:42:38 GMT, Francesco Andreuzzi <fandreuzzi at openjdk.org> wrote:
>> 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`.
>
> Francesco Andreuzzi has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains five additional commits since the last revision:
>
> - review
> - Merge branch 'master' into JDK-8368846
> - nn
> - cc
> - convert to junit and skip
Looks good now.
-------------
Marked as reviewed by bpb (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/27542#pullrequestreview-3321037364
More information about the core-libs-dev
mailing list