summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2020-02-06 19:05:20 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2020-02-13 04:53:27 +0000
commitea78fef450b8d4adc8a186b880ef9991a0e3e290 (patch)
treec1a22a42223b11de6566e5d537f8100352e67672
parent664ecaa152b07c3f163b06c904e5686e40ae3e69 (diff)
downloadlibinput-ea78fef450b8d4adc8a186b880ef9991a0e3e290.tar.gz
test: drop a wait in favor of direct event processing
We know we should have an event here, so we might as well process it immediately to speed the error case up. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--test/test-tablet.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/test-tablet.c b/test/test-tablet.c
index 985480d6..999d1a48 100644
--- a/test/test-tablet.c
+++ b/test/test-tablet.c
@@ -2823,9 +2823,10 @@ START_TEST(tool_in_prox_before_start)
litest_timeout_tablet_proxout();
libinput_dispatch(li);
- litest_wait_for_event_of_type(li,
- LIBINPUT_EVENT_TABLET_TOOL_PROXIMITY,
- -1);
+ event = libinput_get_event(li);
+ litest_is_tablet_event(event, LIBINPUT_EVENT_TABLET_TOOL_PROXIMITY);
+ libinput_event_destroy(event);
+
libinput_unref(li);
}
END_TEST