mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 14:00:29 +01:00
test: tighten the wakeup-on-key lid test
Having a litest_wait_for_event_of_type() in there causes us to silently discard anything but the events we're looking for. This is risky, we want to make sure that if we re-enable the lid that the key events arrive *after* the lid open event, not before. So let's not paper over those. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
3f6b97d4c4
commit
1daaa07fc3
1 changed files with 0 additions and 1 deletions
|
|
@ -360,7 +360,6 @@ START_TEST(lid_open_on_key)
|
|||
litest_event(keyboard, EV_SYN, SYN_REPORT, 0);
|
||||
libinput_dispatch(li);
|
||||
|
||||
litest_wait_for_event_of_type(li, LIBINPUT_EVENT_SWITCH_TOGGLE, -1);
|
||||
event = libinput_get_event(li);
|
||||
litest_is_switch_event(event,
|
||||
LIBINPUT_SWITCH_LID,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue