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

Prasanta Sadhukhan psadhukhan at openjdk.java.net
Thu Apr 28 16:23:44 UTC 2022


On Thu, 21 Apr 2022 15:23:31 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.
>
> Phil Race has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8285094

Marked as reviewed by psadhukhan (Reviewer).

test/jdk/java/awt/Frame/InvisibleOwner/InvisibleOwner.java line 159:

> 157:             robot.mouseMove(C_X, C_Y);
> 158:             robot.mousePress(InputEvent.BUTTON1_MASK);
> 159:             robot.mouseRelease(InputEvent.BUTTON1_MASK);

In other places,we have modified to use BUTTON1_DOWN_MASK, maybe we can do here too.

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

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



More information about the client-libs-dev mailing list