test: Assert libevdev_uinput_write_event() call was successful
authorJonas Ådahl <jadahl@gmail.com>
Mon, 14 Jul 2014 21:33:51 +0000 (23:33 +0200)
committerJonas Ådahl <jadahl@gmail.com>
Tue, 15 Jul 2014 21:44:50 +0000 (23:44 +0200)
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
test/litest.c

index 5fd9e913873737a0d352109b8bb27646e43d91f6..adcbf3eae83e9eda95d821351e176398d6402d0c 100644 (file)
@@ -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