diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2017-05-30 15:26:16 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2017-06-01 09:52:31 +1000 |
commit | 2704511c50986420c744a6e56fe6d81475a04896 (patch) | |
tree | d57fefca568aab856b6fbc721d03b44aa7c7c9fe /test | |
parent | 89ac7fd24be25191df6eb5d356a89701d1b5fc86 (diff) |
test: add an extra assert into litest_wait_for_event_of_type
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'test')
-rw-r--r-- | test/litest.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/litest.c b/test/litest.c index 9fc1235..fc3e8b5 100644 --- a/test/litest.c +++ b/test/litest.c @@ -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); } |