<AWT Dev> RFR: 8213126: java/awt/Window/MainKeyWindow/TestMainKeyWindow.java time-out on mac10.13

Prasanta Sadhukhan psadhukhan at openjdk.java.net
Mon Jan 4 06:47:56 UTC 2021


On Thu, 29 Oct 2020 18:42:58 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

> Initially, this bug was filed because the test was run via jtreg without passing '-nativepath' option(the make file pass this option automatically). So we could just de-problem list the test, but on the macOS Catalina the "System Preferences.app" was moved so the test cannot run it. As a fix, I suggest running the java app via a separate process instead of "System Preferences.app".
> 
> The test still fails before JDK-8194327, and passed after.

test/jdk/java/awt/Window/MainKeyWindowTest/TestMainKeyWindow.java line 31:

> 29:  * @bug 8194327
> 30:  * @summary [macosx] AWT windows have incorrect main/key window behaviors
> 31:  * @author Alan Snyder

I guess we need to remove @author tag

test/jdk/java/awt/Window/MainKeyWindowTest/TestMainKeyWindow.java line 397:

> 395:             Thread.sleep(20_000);
> 396:             System.exit(0);
> 397:             return;

Can you please explain the reasoning for this snippet where we exit the test. What extra args can be passed? I guess it will exit the whole jtreg vm process cancelling all other tests that are to be run later if we call System.exit?!! or is this only for standalone execution?

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

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


More information about the awt-dev mailing list