RFR: 8367552: JCmdTestFileSafety.java fails when ran by root user

Daniel D. Daugherty dcubed at openjdk.org
Mon Sep 15 23:30:11 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.

I changed the bug synopsis from 'ran' to 'run'. Please update the PR's title.
The easiest way to do that is: `/issue JDK-8367552`

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

PR Comment: https://git.openjdk.org/jdk/pull/27261#issuecomment-3294311002


More information about the hotspot-runtime-dev mailing list