test: replace two asserts with litest_asserts

Having a backtrace is nice

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2015-06-17 11:21:23 +10:00
parent 163dfbfacb
commit b1e7e6fd29

View file

@ -1320,7 +1320,7 @@ litest_touch_up(struct litest_device *d, unsigned int slot)
{ .type = -1, .code = -1 }
};
assert(d->ntouches_down > 0);
litest_assert_int_gt(d->ntouches_down, 0);
d->ntouches_down--;
send_btntool(d);
@ -1437,7 +1437,7 @@ litest_hover_end(struct litest_device *d, unsigned int slot)
{ .type = -1, .code = -1 }
};
assert(d->ntouches_down > 0);
litest_assert_int_gt(d->ntouches_down, 0);
d->ntouches_down--;
send_btntool(d);