mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 18:10:28 +01:00
test: fix a race condition during a switch test
Depending on the speed of the runner there may be a hold gesture being triggered - let's ignore that one. Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1265>
This commit is contained in:
parent
89c2f29d2c
commit
14a83ef18b
1 changed files with 4 additions and 0 deletions
|
|
@ -983,6 +983,10 @@ START_TEST(tablet_mode_disable_touchpad_on_resume)
|
|||
litest_touch_down(touchpad, 0, 50, 50);
|
||||
litest_touch_move_to(touchpad, 0, 50, 50, 70, 50, 10);
|
||||
litest_touch_up(touchpad, 0);
|
||||
litest_dispatch(li);
|
||||
litest_drain_events_of_type(li,
|
||||
LIBINPUT_EVENT_GESTURE_HOLD_BEGIN,
|
||||
LIBINPUT_EVENT_GESTURE_HOLD_END);
|
||||
litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_MOTION);
|
||||
|
||||
litest_device_destroy(touchpad);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue