From b1e7e6fd290d509d3c97b063fee9445f7ec6c54b Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 17 Jun 2015 11:21:23 +1000 Subject: [PATCH] test: replace two asserts with litest_asserts Having a backtrace is nice Signed-off-by: Peter Hutterer --- test/litest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/litest.c b/test/litest.c index 591c02a1..6f74f25f 100644 --- a/test/litest.c +++ b/test/litest.c @@ -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);