mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-04 23:28:00 +02:00
test: add an extra assert into litest_wait_for_event_of_type
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
89ac7fd24b
commit
2704511c50
1 changed files with 2 additions and 1 deletions
|
|
@ -2353,7 +2353,8 @@ litest_wait_for_event_of_type(struct libinput *li, ...)
|
|||
struct libinput_event *event;
|
||||
|
||||
while ((type = libinput_next_event_type(li)) == LIBINPUT_EVENT_NONE) {
|
||||
poll(&fds, 1, -1);
|
||||
int rc = poll(&fds, 1, -1);
|
||||
litest_assert_int_gt(rc, -1);
|
||||
libinput_dispatch(li);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue