mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-05 11:20:19 +01:00
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:
parent
163dfbfacb
commit
b1e7e6fd29
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue