RFR: 8158801: [TEST_BUG] Mixing tests fail because of focus workaround trick [v27]

Khalid Boulanouare duke at openjdk.org
Mon Sep 1 13:39:50 UTC 2025


On Sun, 31 Aug 2025 09:15:27 GMT, Khalid Boulanouare <duke at openjdk.org> wrote:

>> test/jdk/java/awt/Mixing/AWT_Mixing/SimpleOverlappingTestBase.java line 172:
>> 
>>> 170:             if (!await) {
>>> 171:                 throw new RuntimeException("Ancestor frame didn't receive " +
>>> 172:                         "focus");
>> 
>> I guess this latch wait needs to be moved to `ancestor != null` block as it is a noop for null ancestor
>
> I will move the latch synchronization to `ancestor != null ` condition and test that it is still wokring.

I have moved the latch logic inside the `ancestor != null` and run the CI job. Each test is run 5 times on the same machine and on two machines for each OS.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25971#discussion_r2313989122


More information about the client-libs-dev mailing list