On Mon, 29 Sep 2025 08:28:38 GMT, Francesco Andreuzzi <[email protected]> 
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 <[email protected]>
Committer: Brian Burkhalter <[email protected]>
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

Reply via email to