test: only run 3-slot test for touchpads with three slots

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2015-07-22 09:21:13 +10:00
parent 662c5caff2
commit 32ea86559b

View file

@ -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;