From: Peter Hutterer Date: Fri, 17 Feb 2017 00:40:34 +0000 (+1000) Subject: test: skip two tests when middle button is missing X-Git-Tag: 1.6.901~6^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=72c5821a3b57e9e6fa713bdfb82939c8299e543d;p=platform%2Fupstream%2Flibinput.git 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 Reviewed-by: Hans de Goede --- 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,