test: add two more more libinput_dispatch() calls

We're writing a lot of events here, if the system isn't fast enough or
(in the future) if we have a custom socket instead of a kernel device we
might fill up the write buffer, causing the test to fail.

Easy workaround is to dispatch more often to ensure the data is being
read from the fd.

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/984>
This commit is contained in:
Peter Hutterer 2024-03-18 09:14:53 +10:00 committed by Marge Bot
parent d6e54c3597
commit 30c6d5983d

View file

@ -3723,6 +3723,7 @@ START_TEST(touchpad_fingers_down_before_init)
break;
litest_touch_move(dev, i, 20 + 10 * i + x, 30);
}
libinput_dispatch(li);
}
libinput_dispatch(li);
litest_assert_empty_queue(li);
@ -3733,6 +3734,7 @@ START_TEST(touchpad_fingers_down_before_init)
} else {
litest_event(dev, EV_KEY, map[finger_count], 0);
}
libinput_dispatch(li);
}
litest_assert_empty_queue(li);