mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-03-21 23:50:45 +01:00
test: simplify a slot count check
Smaller than 3 and greater or equal to 4 means - well, anything that's not 3. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
62df51789b
commit
b4fa301d1f
1 changed files with 1 additions and 2 deletions
|
|
@ -382,8 +382,7 @@ START_TEST(touchpad_4fg_clickfinger_btntool_3slots)
|
|||
struct libinput *li = dev->libinput;
|
||||
struct libinput_event *event;
|
||||
|
||||
if (libevdev_get_num_slots(dev->evdev) >= 4 ||
|
||||
libevdev_get_num_slots(dev->evdev) < 3 ||
|
||||
if (libevdev_get_num_slots(dev->evdev) != 3 ||
|
||||
!libevdev_has_event_code(dev->evdev, EV_KEY, BTN_TOOL_TRIPLETAP))
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue