Integrated: 8367552: JCmdTestFileSafety.java fails when run by root user
Francesco Andreuzzi
fandreuzzi at openjdk.org
Tue Sep 16 08:04:00 UTC 2025
On Fri, 12 Sep 2025 15:30:49 GMT, Francesco Andreuzzi <fandreuzzi at openjdk.org> wrote:
> I noticed this while running the test in a Docker container. The test tries to call `File.setWriteable(false)` on a directory in which it later tries to override an existing CDS archive. Since the root user is not affected by the missing write permission, the test fails consistently.
>
> I propose to skip it if we detect that 'root' is running it, should be a trivial change.
This pull request has now been integrated.
Changeset: eb26865c
Author: Francesco Andreuzzi <fandreuzzi at openjdk.org>
Committer: Albert Mingkun Yang <ayang at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/eb26865c36f1961ee802c8db812c786d4bdd4944
Stats: 3 lines in 1 file changed: 3 ins; 0 del; 0 mod
8367552: JCmdTestFileSafety.java fails when run by root user
Reviewed-by: dcubed, ayang, phubner
-------------
PR: https://git.openjdk.org/jdk/pull/27261
More information about the hotspot-runtime-dev
mailing list