Integrated: 8368846: java/io/File/createTempFile/TargetDirectory fails when run by root user

Francesco Andreuzzi fandreuzzi at openjdk.org
Fri Oct 10 15:42:49 UTC 2025


On Mon, 29 Sep 2025 08:28: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`.

This pull request has now been integrated.

Changeset: fc49a1b5
Author:    Francesco Andreuzzi <fandreuzzi at openjdk.org>
Committer: Brian Burkhalter <bpb at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/fc49a1b502530908618b19bcd749aa4db0b598d9
Stats:     52 lines in 1 file changed: 18 ins; 10 del; 24 mod

8368846: java/io/File/createTempFile/TargetDirectory fails when run by root user

Reviewed-by: bpb

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

PR: https://git.openjdk.org/jdk/pull/27542


More information about the core-libs-dev mailing list