Skip to content

Commit

Permalink
test: swap KEY_POWER for KEY_VOLUMEUP on the switch key routing test
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
whot committed Feb 5, 2018
1 parent 394f343 commit b8bef10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test-switch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit b8bef10

Please sign in to comment.