test: skip the tablet pressure test if we don't have pressure
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 12 Feb 2019 04:02:13 +0000 (14:02 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 13 Feb 2019 08:45:04 +0000 (18:45 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test/test-tablet.c

index e3fd228a14a3fcb32bbc1e0b8c417d0f2c090080..ce2fe732e18312838a8cf92d24c455d2736cad35 100644 (file)
@@ -3525,6 +3525,9 @@ START_TEST(tablet_pressure_min_max)
        };
        double p;
 
+       if (!libevdev_has_event_code(dev->evdev, EV_ABS, ABS_PRESSURE))
+               return;
+
        litest_tablet_proximity_in(dev, 5, 100, axes);
        litest_drain_events(li);
        libinput_dispatch(li);