Hi All,

Please review a testbug fix for an issue seen intermittently in linux nightly.

Issue is that the test times out after the test finishes without actually propagating the test results to jtreg harness. It seems like the JFrame which is created is called with EXIT_ON_CLOSE which will call System.exit(0) causing the vm to terminate and if the test is not run with othervm option, it might create some issue when run in a bunch, as it is done in nightly testing.

Proposed fix is to remove the EXIT_ON_CLOSE option as we already have frame.dispose() call. mach5 run is green.

Bug: https://bugs.openjdk.java.net/browse/JDK-8234385

diff -r 9db62a092725 test/jdk/java/awt/EventQueue/6980209/bug6980209.java
--- a/test/jdk/java/awt/EventQueue/6980209/bug6980209.java Thu Nov 14 10:59:45 2019 +0530 +++ b/test/jdk/java/awt/EventQueue/6980209/bug6980209.java Tue Nov 19 15:06:03 2019 +0530
@@ -63,7 +63,6 @@
                 public void run() {
                     frame = new JFrame();
                     frame.setUndecorated(true);
*- frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);*
                     setup(frame);
                 }
             });

Regards

Prasanta

Reply via email to