From 67151ddcf59aae5ab9e08763e30d35167853c9a1 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 25 Sep 2019 16:49:08 +1000 Subject: [PATCH] test: don't use debounced clicks for the middle button emulation click This used to work under valgrind up to F30 but with the F31 beta something is now a tad slower so it triggers the timeouts before the middle emulation kicks in. The middlebutton timeout is 50ms and the first debounce timeout is 30ms, so if we're late by 20ms, well, there goes the timeout. Signed-off-by: Peter Hutterer --- test/test-pointer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test-pointer.c b/test/test-pointer.c index 6561489a..4ec32f89 100644 --- a/test/test-pointer.c +++ b/test/test-pointer.c @@ -1171,8 +1171,8 @@ START_TEST(pointer_scroll_button_middle_emulation) litest_drain_events(li); - litest_button_click_debounced(dev, li, BTN_LEFT, 1); - litest_button_click_debounced(dev, li, BTN_RIGHT, 1); + litest_button_click(dev, BTN_LEFT, 1); + litest_button_click(dev, BTN_RIGHT, 1); libinput_dispatch(li); litest_timeout_buttonscroll(); libinput_dispatch(li); @@ -1184,8 +1184,8 @@ START_TEST(pointer_scroll_button_middle_emulation) libinput_dispatch(li); - litest_button_click_debounced(dev, li, BTN_LEFT, 0); - litest_button_click_debounced(dev, li, BTN_RIGHT, 0); + litest_button_click(dev, BTN_LEFT, 0); + litest_button_click(dev, BTN_RIGHT, 0); libinput_dispatch(li); litest_assert_scroll(li, LIBINPUT_POINTER_AXIS_SCROLL_VERTICAL, -1);