diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2017-05-22 14:21:40 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2017-05-23 13:03:42 +1000 |
commit | 1daaa07fc34f10628675ab95a681caa5bf128c66 (patch) | |
tree | bcf6ccc1851ae0c6c6b67238d06d2398974d1ab4 /test | |
parent | 3f6b97d4c4c700b8c22988ed551fa199330d2b59 (diff) |
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>
Diffstat (limited to 'test')
-rw-r--r-- | test/test-lid.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/test/test-lid.c b/test/test-lid.c index 5254222..1bd75cb 100644 --- a/test/test-lid.c +++ b/test/test-lid.c @@ -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, |