[PATCH libinput 05/17] test: wait for events in litest_assert_button_events
Peter Hutterer
peter.hutterer at who-t.net
Tue Sep 2 19:02:56 PDT 2014
Takes the onus of waiting from the caller.
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
test/litest.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/litest.c b/test/litest.c
index 8f3784f..c3b99ef 100644
--- a/test/litest.c
+++ b/test/litest.c
@@ -1067,7 +1067,7 @@ litest_assert_button_event(struct libinput *li, unsigned int button,
struct libinput_event *event;
struct libinput_event_pointer *ptrev;
- libinput_dispatch(li);
+ litest_wait_for_event(li);
event = libinput_get_event(li);
ck_assert(event != NULL);
--
1.9.3
More information about the wayland-devel
mailing list