[PATCH libinput 06/14] test: remove a wait loop from the usec gesture test

Peter Hutterer peter.hutterer at who-t.net
Thu Jan 7 20:11:10 PST 2016


We know we (should) have events when we get here.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 test/gestures.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/test/gestures.c b/test/gestures.c
index 39be36c..71c8fd3 100644
--- a/test/gestures.c
+++ b/test/gestures.c
@@ -375,8 +375,7 @@ START_TEST(gestures_time_usec)
 					0, 30,
 					4, 2);
 
-	litest_wait_for_event(li);
-
+	libinput_dispatch(li);
 	event = libinput_get_event(li);
 	gevent = litest_is_gesture_event(event,
 					 LIBINPUT_EVENT_GESTURE_SWIPE_BEGIN,
-- 
2.5.0



More information about the wayland-devel mailing list