test: add helper function for checking for a specific event type
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 18 Dec 2014 01:29:32 +0000 (11:29 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 23 Dec 2014 01:14:39 +0000 (11:14 +1000)
commitc464458f829361e38e4ee07a34538a9660f8d0c5
treeb49e66f39900ffec6229628d95bab428338bc5c7
parent6138babc12ebd03d8482542137aac50913be405c
test: add helper function for checking for a specific event type

In a few tests we care about that a specific set of events are in the queue
but not about the details of the events (usually checked elsewhere). Instead
of manual loops, provide a helper function that also checks that there is at
least one of those events in the queue.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test/litest.c
test/litest.h