summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2021-02-15 17:34:34 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2021-02-15 17:34:51 +1000
commitb8d4197697c2920bc45b9d00f988c1284452f3d6 (patch)
treef1cc8fd87649d6d6d558c7b58b86802e4f46a3fb
parenta0d842a640228caab3317d242eac2440982d68f0 (diff)
test: print the event type on mismatch
We already have a helper function for this, let's use it. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--test/litest.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/litest.c b/test/litest.c
index e538ca46..0e83231d 100644
--- a/test/litest.c
+++ b/test/litest.c
@@ -3920,8 +3920,7 @@ litest_assert_only_typed_events(struct libinput *li,
litest_assert_notnull(event);
while (event) {
- litest_assert_int_eq(libinput_event_get_type(event),
- type);
+ litest_assert_event_type(event, type);
libinput_event_destroy(event);
libinput_dispatch(li);
event = libinput_get_event(li);