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:
Peter Hutterer 2018-02-01 15:25:34 +10:00
parent 394f343e70
commit b8bef106c0

View file

@ -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 */