From a43042425e73f5ce1a546b76b4650d78f43daeb0 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 23 Aug 2016 08:11:11 +1000 Subject: test: add a helper function to compare the event type New error message prints the human-readable event type, not just the enum values. Signed-off-by: Peter Hutterer --- test/litest.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/litest.h') diff --git a/test/litest.h b/test/litest.h index cdbe1fa..1db7237 100644 --- a/test/litest.h +++ b/test/litest.h @@ -528,6 +528,10 @@ litest_wait_for_event_of_type(struct libinput *li, ...); void litest_drain_events(struct libinput *li); +void +litest_assert_event_type(struct libinput_event *event, + enum libinput_event_type want); + void litest_assert_empty_queue(struct libinput *li); -- cgit v1.2.3