RFO: GUI tests for wakefield

Sergey Bylokhov bylokhov at amazon.com
Mon Dec 15 16:47:23 UTC 2025


On 12/10/25 05:09, Maxim Kartashev wrote:
> Many tests in test/jdk/javax/swing/ or awt/ that we run turned out to be not very useful: they 
> create some UI and then immediately return from main(). If such a test is executed under jtreg, 
> jtreg will almost immediately call System.exit() and terminate the whole test. One concrete example 
> is test/jdk/javax/swing/PopupFactory/8048506/bug8048506.java, but there are many more like this.

Many such tests, including the one above, do not need to display anything on the screen. They create 
a displayable window (with a peer) and trigger code paths that previously caused an exception.

Of course, it is always a good thing to update tests when unstable ones are found.

-- 
Best regards, Sergey.


More information about the wakefield-dev mailing list