[PATCH libinput 08/11] test: only run 3-slot test for touchpads with three slots

Peter Hutterer peter.hutterer at who-t.net
Tue Jul 21 22:09:28 PDT 2015


Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 test/touchpad.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/touchpad.c b/test/touchpad.c
index 329eeb3..875bc58 100644
--- a/test/touchpad.c
+++ b/test/touchpad.c
@@ -456,6 +456,7 @@ START_TEST(touchpad_4fg_clickfinger_btntool_3slots)
 	struct libinput_event *event;
 
 	if (libevdev_get_num_slots(dev->evdev) >= 4 ||
+	    libevdev_get_num_slots(dev->evdev) < 3 ||
 	    !libevdev_has_event_code(dev->evdev, EV_KEY, BTN_TOOL_TRIPLETAP))
 		return;
 
-- 
2.4.3



More information about the wayland-devel mailing list