mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 11:10:29 +01:00
test: swap KEY_POWER for KEY_VOLUMEUP on the switch key routing test
If there's anything that listens for KEY_POWER it will likely shut down or suspend the host. Since it doesn't matter whether we're really testing for KEY_POWER or just any other key, let's just switch it and avoid one headache. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
394f343e70
commit
b8bef106c0
1 changed files with 2 additions and 2 deletions
|
|
@ -819,8 +819,8 @@ START_TEST(lid_key_press)
|
|||
|
||||
litest_drain_events(li);
|
||||
|
||||
litest_keyboard_key(sw, KEY_POWER, true);
|
||||
litest_keyboard_key(sw, KEY_POWER, false);
|
||||
litest_keyboard_key(sw, KEY_VOLUMEUP, true);
|
||||
litest_keyboard_key(sw, KEY_VOLUMEUP, false);
|
||||
libinput_dispatch(li);
|
||||
|
||||
/* Check that we're routing key events from a lid device too */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue