From 32ea86559b5a9d62502bcad8acfbaa3a651d20cf Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 22 Jul 2015 09:21:13 +1000 Subject: [PATCH] test: only run 3-slot test for touchpads with three slots Signed-off-by: Peter Hutterer --- test/touchpad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/touchpad.c b/test/touchpad.c index 64bdd440..58b5d625 100644 --- a/test/touchpad.c +++ b/test/touchpad.c @@ -430,7 +430,7 @@ START_TEST(touchpad_4fg_clickfinger_btntool_3slots) struct litest_device *dev = litest_current_device(); struct libinput *li = dev->libinput; - if (libevdev_get_num_slots(dev->evdev) >= 4 || + if (libevdev_get_num_slots(dev->evdev) != 3 || !libevdev_has_event_code(dev->evdev, EV_KEY, BTN_TOOL_TRIPLETAP)) return;