summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2014-07-14 23:33:51 +0200
committerJonas Ådahl <jadahl@gmail.com>2014-07-15 23:44:50 +0200
commit2eaefefdde52e540275a513eb25b254c81702d64 (patch)
tree57bc551a3801a14dbb9f5eea3f5f1e510284c84f
parent60ac2eb8130eb04e452f661c7aee68fe4d64caff (diff)
downloadlibinput-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.c3
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