Skip to content

Commit

Permalink
test: add an extra assert into litest_wait_for_event_of_type
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
  • Loading branch information
whot committed May 31, 2017
1 parent 89ac7fd commit 2704511
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/litest.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 2704511

Please sign in to comment.