RFR: 8285094: Test java/awt/Frame/InvisibleOwner/InvisibleOwner.java failing on Linux

Prasanta Sadhukhan psadhukhan at openjdk.java.net
Thu Apr 21 08:48:27 UTC 2022


On Wed, 20 Apr 2022 04:13:09 GMT, Phil Race <prr at openjdk.org> wrote:

> As discussed in https://bugs.openjdk.java.net/browse/JDK-8285094 it seems that the test
> java/awt/Frame/GetGraphicsStressTest/GetGraphicsStressTest.java destabilises the Xserver.
> This causes java/awt/Frame/InvisibleOwner/InvisibleOwner.java to fail and even before that
> other tests which do  pass are not visibly behaving as expected.
> 
> I didn't find any Xserver logs of "bad stuff" happening so it just seems like the Xserver was
> having trouble keeping up and JDK was behaving correctly as it could despite the Xserver sending
> lots of requests to repaint.
> 
> Just the "sleep" at the end of GetGraphicsStressTest.java seems to be enough but I'd already
> reworked InvisibleOwner.java and I'd like to think it is a bit better than before.

Maybe a Thread.sleep(1000) is also needed after frame.setVisible(true); and also frame.dispose() as test() is called 4 times so we will give time to setup test after frame is visible and frame is disposed at test completion.

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

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



More information about the client-libs-dev mailing list