summaryrefslogtreecommitdiffstats
path: root/tests/auto/client/shared/mockcompositor.h
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@qt.io>2018-02-21 10:29:24 +0100
committerJohan Helsing <johan.helsing@qt.io>2018-02-21 10:36:28 +0000
commit3dd9c91b6ebd7f9eccecad90ac57681f6bf6c5d6 (patch)
tree875da679118dbe39ee33e843a46ada9eda609029 /tests/auto/client/shared/mockcompositor.h
parent1ebb4e0d64bf27dfc6c38b9770ae744fad87fb82 (diff)
Fix flakiness in tst_WaylandClient::events
The test was flaky because we have a workaround for a bug in Weston where Weston fails to send the last wl_touch.frame event (QTBUG-36602). We've worked around it by letting our client handle the wl_touch.up event before the frame event if it's the last up event. This caused a race condition in our tests, though (which include the frame event). Because Q_TRY_COMPARE(window.touchEventCount, 1) would pass and the window was sometimes destroyed before the frame event had been sent by the compositor thread. Work around it by moving the touch testing before the pointer testing, so the surface is still alive when the compositor tries to send the frame event. That way the test will not be flaky, and will continue to work when we eventually remove the workaround in QWaylandInputDevice. Task-number: QTBUG-66537 Change-Id: I5673445682810e75343c6df2d1b2a4f1c1b21bcb Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'tests/auto/client/shared/mockcompositor.h')
0 files changed, 0 insertions, 0 deletions