RFR: 8367552: JCmdTestFileSafety.java fails when run by root user [v2]
duke
duke at openjdk.org
Tue Sep 16 00:26:14 UTC 2025
On Mon, 15 Sep 2025 23:45:19 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.
>
> Francesco Andreuzzi has updated the pull request incrementally with one additional commit since the last revision:
>
> review
@fandreuz
Your change (at version c7e69ceacc7482adbdeba490580b1858e40e6f5d) is now ready to be sponsored by a Committer.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27261#issuecomment-3294418588
More information about the hotspot-runtime-dev
mailing list