projects
/
platform
/
upstream
/
libinput.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
163dfbf
)
test: replace two asserts with litest_asserts
author
Peter Hutterer
<peter.hutterer@who-t.net>
Wed, 17 Jun 2015 01:21:23 +0000
(11:21 +1000)
committer
Peter Hutterer
<peter.hutterer@who-t.net>
Thu, 18 Jun 2015 00:34:11 +0000
(10:34 +1000)
Having a backtrace is nice
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test/litest.c
patch
|
blob
|
history
diff --git
a/test/litest.c
b/test/litest.c
index 591c02a1e833bfc564ef0313afc3288da60f55a3..6f74f25fb99ce2d0ebc62df096e05afd1a908d8c 100644
(file)
--- 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);