No internal timeout we have takes longer than 2s, so we can abort if we don't
succeed. This gives us a better backtrace to figure out where we're hanging
than the SIGABRT that check will eventually send us.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
struct libinput_event *event;
while ((type = libinput_next_event_type(li)) == LIBINPUT_EVENT_NONE) {
- int rc = poll(&fds, 1, -1);
- litest_assert_int_gt(rc, -1);
+ int rc = poll(&fds, 1, 2000);
+ litest_assert_int_gt(rc, 0);
libinput_dispatch(li);
}