mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 09:20:29 +01:00
test: wait for events in litest_assert_button_events
Takes the onus of waiting from the caller. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
84007034aa
commit
fca1519395
1 changed files with 1 additions and 1 deletions
|
|
@ -1071,7 +1071,7 @@ litest_assert_button_event(struct libinput *li, unsigned int button,
|
|||
struct libinput_event *event;
|
||||
struct libinput_event_pointer *ptrev;
|
||||
|
||||
libinput_dispatch(li);
|
||||
litest_wait_for_event(li);
|
||||
event = libinput_get_event(li);
|
||||
|
||||
ck_assert(event != NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue