diff options
author | Jonas Ådahl <jadahl@gmail.com> | 2014-07-14 23:33:51 +0200 |
---|---|---|
committer | Jonas Ådahl <jadahl@gmail.com> | 2014-07-15 23:44:50 +0200 |
commit | 2eaefefdde52e540275a513eb25b254c81702d64 (patch) | |
tree | 57bc551a3801a14dbb9f5eea3f5f1e510284c84f | |
parent | 60ac2eb8130eb04e452f661c7aee68fe4d64caff (diff) | |
download | libinput-2eaefefdde52e540275a513eb25b254c81702d64.tar.gz |
test: Assert libevdev_uinput_write_event() call was successful
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
-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 5fd9e913..adcbf3ea 100644 --- a/test/litest.c +++ b/test/litest.c @@ -588,7 +588,8 @@ void litest_event(struct litest_device *d, unsigned int type, unsigned int code, int value) { - libevdev_uinput_write_event(d->uinput, type, code, value); + int ret = libevdev_uinput_write_event(d->uinput, type, code, value); + ck_assert_int_eq(ret, 0); } static int |