From: Peter Hutterer Date: Mon, 15 Feb 2021 07:34:34 +0000 (+1000) Subject: test: print the event type on mismatch X-Git-Tag: 1.16.902~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b8d4197697c2920bc45b9d00f988c1284452f3d6;p=platform%2Fupstream%2Flibinput.git test: print the event type on mismatch We already have a helper function for this, let's use it. Signed-off-by: Peter Hutterer --- 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);