test: Assert libevdev_uinput_write_event() call was successful

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
This commit is contained in:
Jonas Ådahl 2014-07-14 23:33:51 +02:00
parent 60ac2eb813
commit 2eaefefdde

View 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