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:
Peter Hutterer 2017-05-30 15:26:16 +10:00
parent 89ac7fd24b
commit 2704511c50

View file

@ -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);
}