RFR: 8368846: java/io/File/createTempFile/TargetDirectory fails when run by root user [v2]
duke
duke at openjdk.org
Fri Oct 10 07:53:08 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
@fandreuz
Your change (at version 8b828646634f231d6941a665cf7762c63b2f117b) is now ready to be sponsored by a Committer.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27542#issuecomment-3388707811
More information about the core-libs-dev
mailing list