RFR: 8367552: JCmdTestFileSafety.java fails when run by root user [v2]

Francesco Andreuzzi fandreuzzi at openjdk.org
Mon Sep 15 23:45:21 UTC 2025


On Mon, 15 Sep 2025 23:32:14 GMT, Daniel D. Daugherty <dcubed at openjdk.org> wrote:

>> Francesco Andreuzzi has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   review
>
> test/hotspot/jtreg/runtime/cds/appcds/jcmd/JCmdTestFileSafety.java line 145:
> 
>> 143:         }
>> 144:         if (Platform.isRoot()) {
>> 145:             throw new jtreg.SkippedException("Write permissions do not apply to root user");
> 
> Perhaps:
> 
> throw new jtreg.SkippedException("Test skipped when executed by root user.");

Suggestion:

            throw new jtreg.SkippedException("Test skipped when executed by root user.");

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27261#discussion_r2350332840


More information about the hotspot-runtime-dev mailing list