Ignore failures in tests handling mouse clicks under AppVeyor

For some completely mysterious reason we don't get the expected mouse
click events when running under AppVeyor, something might be covering
the window and stealing the clicks for itself there.

As there doesn't seem to be anything to do about it, just skip the test
in this case.

Closes #24082.
This commit is contained in:
Vadim Zeitlin 2024-01-03 20:21:59 +01:00
parent 989829891a
commit 261490d5e2

View file

@ -221,6 +221,17 @@ WaitForEventAt(
if ( sw.Time() > timeout )
{
// This sporadically happens under AppVeyor for unknown reasons and
// there doesn't seem to be anything we can do about it, so just
// skip the test if it happens.
if ( IsAutomaticTest() )
{
WARN("Timed out waiting for " << what << "; skipping test");
return false;
}
// Otherwise fail it -- maybe someone will be able to understand
// why it happens one day if it does happen locally.
FAIL("Timed out waiting for " << what);
break; // unreachable
}