test: use litest_dispatch() in litest_wait_for_events()

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1184>
This commit is contained in:
Peter Hutterer 2025-04-16 19:03:51 +10:00
parent 5c1c14e567
commit 2487273b5e

View file

@ -3452,7 +3452,7 @@ _litest_wait_for_event_of_type(struct libinput *li,
int rc = poll(&fds, 1, timeout);
litest_assert_errno_success(rc);
litest_assert_int_gt(rc, 0);
libinput_dispatch(li);
litest_dispatch(li);
}
if (type == LIBINPUT_EVENT_NONE) {