summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2017-02-17 10:40:34 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2017-02-20 12:17:22 +1000
commit72c5821a3b57e9e6fa713bdfb82939c8299e543d (patch)
treee2929c3ad9a4e11cbe0fa3b934f83a54e4488099
parent9ab05b0bfda91bec5bdc5f1789aaa6a854558fa7 (diff)
downloadlibinput-72c5821a3b57e9e6fa713bdfb82939c8299e543d.tar.gz
test: skip two tests when middle button is missing
And disable middle button emulation for this test, it would mess with the test results. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
-rw-r--r--test/test-pointer.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test-pointer.c b/test/test-pointer.c
index abc8a118..d4d26079 100644
--- a/test/test-pointer.c
+++ b/test/test-pointer.c
@@ -952,6 +952,11 @@ START_TEST(pointer_left_handed_during_click_multiple_buttons)
struct libinput *li = dev->libinput;
enum libinput_config_status status;
+ if (!libinput_device_pointer_has_button(d, BTN_MIDDLE))
+ return;
+
+ litest_disable_middleemu(dev);
+
litest_drain_events(li);
litest_button_click(dev, BTN_LEFT, 1);
libinput_dispatch(li);
@@ -1046,6 +1051,11 @@ START_TEST(pointer_scroll_button_no_event_before_timeout)
struct libinput *li = device->libinput;
int i;
+ if (!libinput_device_pointer_has_button(device->libinput_device,
+ BTN_MIDDLE))
+ return;
+
+ litest_disable_middleemu(device);
disable_button_scrolling(device);
libinput_device_config_scroll_set_method(device->libinput_device,