On Wed, 16 Jul 2025 10:34:24 GMT, Abhishek Kumar <abhis...@openjdk.org> wrote:

>> Test is failing on intermittently on macOS and ubuntu machine in CI testing.
>> Test stabilization done by requesting focus for the frame before starting 
>> the testing. 
>> 
>> Ran the test before and after the fix and there is no failure after test 
>> stabilization for multiple run.
>> CI link is added in JBS.
>
> Abhishek Kumar has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   Remove build util

test/jdk/javax/swing/JMenuBar/TestMenuMnemonicLinuxAndMac.java line 120:

> 118:         frame.setVisible(true);
> 119:         frame.toFront();
> 120:         frame.requestFocus();

If you are particular about focus being gained before the test starts, maybe 
you can use `CountDownLatch `and have FocusListener for frame and  wait till 
timeout and  release the latch in `focusGained`

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26307#discussion_r2212616108

Reply via email to