[crac] RFR: 8364538: [CRaC] Test CRaCIgnoreRestoreIfUnavailable [v2]

Timofei Pushkin tpushkin at openjdk.org
Tue Aug 5 06:50:32 UTC 2025


On Mon, 4 Aug 2025 15:18:05 GMT, Radim Vansa <rvansa at openjdk.org> wrote:

>> Timofei Pushkin has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Fix EngineFailureTest on linux-x86
>
> test/jdk/jdk/crac/ignoreRestore/EngineFailureTest.java line 51:
> 
>> 49:         // Create an empty image which will pass VM's own checks. It may contain
>> 50:         // CPU features, for example.
>> 51:         new CracBuilder().engine(CracEngine.SIMULATE)
> 
> OK, this creates the empty directory (or rather one with just features), but what's the point? Just making the 'restore' below fail at a different point of time? If there are two ways of failure, both should be tested.

Yes, if there are no CPU features — that is a different failure.

Did not want to add a test for that because I am not testing CPU features in this PR, but this particular one should not be hard to implement so I'll add it.

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

PR Review Comment: https://git.openjdk.org/crac/pull/255#discussion_r2253318275


More information about the crac-dev mailing list