On Wed, 20 Apr 2022 04:13:09 GMT, Phil Race <p...@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