mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-10 03:20:15 +01:00
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>
This commit is contained in:
parent
664ecaa152
commit
ea78fef450
1 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue