RFR: 8273573: [macos12] ActionListenerCalledTwiceTest.java fails on macOS 12

Prasanta Sadhukhan psadhukhan at openjdk.java.net
Fri Jun 3 03:50:25 UTC 2022


On Thu, 2 Jun 2022 20:12:01 GMT, Alexander Zvegintsev <azvegint at openjdk.org> wrote:

> This test was failing consistently on same machines and at the same time as #8532.
> 
> Test failure is also no longer reproducible after #8320 fix.
> 
> This is macOS only test, so corresponding `@requires os.family` tag was added. Testing is green.

However, there are some observations in the JBS by @prrace regarding the test which have not been handled


Also I noticed that the test doesn't exit. It appears that the call to

Desktop.getDesktop().setDefaultMenuBar(bar);

is effectively creating another visible window so the AWT thread doesn't exit.

Adding this line below allows the test to exit and should be added to the test
            SwingUtilities.invokeAndWait(() -> Desktop.getDesktop().setDefaultMenuBar(null));

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

PR: https://git.openjdk.java.net/jdk/pull/9003



More information about the client-libs-dev mailing list