mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-08 12:28:10 +02: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();
|
litest_timeout_tablet_proxout();
|
||||||
libinput_dispatch(li);
|
libinput_dispatch(li);
|
||||||
|
|
||||||
litest_wait_for_event_of_type(li,
|
event = libinput_get_event(li);
|
||||||
LIBINPUT_EVENT_TABLET_TOOL_PROXIMITY,
|
litest_is_tablet_event(event, LIBINPUT_EVENT_TABLET_TOOL_PROXIMITY);
|
||||||
-1);
|
libinput_event_destroy(event);
|
||||||
|
|
||||||
libinput_unref(li);
|
libinput_unref(li);
|
||||||
}
|
}
|
||||||
END_TEST
|
END_TEST
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue