From bba79754d6b5d9044c51bed69ade8286cc4683fb Mon Sep 17 00:00:00 2001 From: satrmb <10471-satrmb@users.noreply.gitlab.freedesktop.org> Date: Fri, 22 Nov 2019 15:36:24 +0100 Subject: [PATCH] test: fix a multitap test expecting one tap too few The problem was masked by a missing timeout, causing one up / down pair to not yet be enqueued before reading the queue. --- test/test-touchpad-tap.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/test-touchpad-tap.c b/test/test-touchpad-tap.c index cfb3dd45..2f6d8a59 100644 --- a/test/test-touchpad-tap.c +++ b/test/test-touchpad-tap.c @@ -3498,7 +3498,10 @@ START_TEST(touchpad_tap_palm_multitap_down_again) msleep(10); } - for (ntaps = 0; ntaps <= 2 * range; ntaps++) { + litest_timeout_tap(); + libinput_dispatch(li); + + for (ntaps = 0; ntaps <= 2 * range + 1; ntaps++) { litest_assert_button_event(li, BTN_LEFT, LIBINPUT_BUTTON_STATE_PRESSED);