mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-26 00:30:05 +01:00
test: allow for a hold end event when verifying touch motion
Depending on how quick the test suite runs we may get a hold end event here. Let's silently ignore that one since we aren't interested in it. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
1262c81d9b
commit
23f5d9074b
1 changed files with 6 additions and 0 deletions
|
|
@ -5392,7 +5392,13 @@ verify_left_handed_touch_motion(struct litest_device *finger,
|
|||
litest_touch_move_to(finger, 0, x + 1, y - 1, x + 20, y - 20, 10);
|
||||
libinput_dispatch(li);
|
||||
|
||||
/* Allow for optional hold gesture to end */
|
||||
event = libinput_get_event(li);
|
||||
if (libinput_event_get_type(event) == LIBINPUT_EVENT_GESTURE_HOLD_END) {
|
||||
libinput_event_destroy(event);
|
||||
event = libinput_get_event(li);
|
||||
}
|
||||
|
||||
ck_assert_notnull(event);
|
||||
|
||||
while (event) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue