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>
This commit is contained in:
Peter Hutterer 2021-02-15 17:34:34 +10:00
parent a0d842a640
commit b8d4197697

View file

@ -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);