From b8bef106c012485424619d018562f26a9cd5b211 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 1 Feb 2018 15:25:34 +1000 Subject: [PATCH] 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 --- test/test-switch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test-switch.c b/test/test-switch.c index 65cf1ecc..65e85102 100644 --- a/test/test-switch.c +++ b/test/test-switch.c @@ -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 */