RFR: 8169468: NoResizeEventOnDMChangeTest.java fails because FS Window didn't receive all resizes!

Phil Race prr at openjdk.java.net
Tue Nov 2 03:14:09 UTC 2021


On Mon, 1 Nov 2021 11:35:24 GMT, Alexander Zuev <kizune at openjdk.org> wrote:

> I was able to reproduce this issue locally 2 times out of 100 runs on multi-monitor
> configuration. Both times due to the screen resolution change is so slow window got
> accidentally moved to the secondary screen by the display driver.
> Can not reproduce this bug with ATI card at all.
> Since there is nothing we can do to stop graphics driver from reassigning
> the window if it decides that promary monitor is not on at the moment the
> only way is to check if this has had happened and if so then we can not trust the test
> since we changing resolution of one display and window not getting resized
> because it is placed on another display and test should be skept.
> 
> After that i ran this test locally about a thousand times on all platforms
> and has not seen the failure again.

test/jdk/java/awt/FullScreen/NoResizeEventOnDMChangeTest/NoResizeEventOnDMChangeTest.java line 194:

> 192:         if (skipTest.get()) {
> 193:             // Skipping test because graphics driver switched window to another screen
> 194:             return;

This test isn't about multi-mon .. it is about full screen.
If the window doesn't go full screen on the display we expect that's odd.
Are you saying it went FS on one display and then jumped ?
Can't we make the test more robust about it going on the display we expect OR pivot the test to verifying on the display that went FS ?

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

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



More information about the client-libs-dev mailing list