diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2024-03-18 09:14:53 +1000 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2024-03-18 16:25:47 +0000 |
commit | 30c6d5983db69ece5c3a94f837beaa9d736e9a4c (patch) | |
tree | c29a84f3f46116083f55f9fc90679b0b589c8561 | |
parent | d6e54c35977aaf92cb526d5ef48e02cc387afc1f (diff) |
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>
-rw-r--r-- | test/test-touchpad.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test-touchpad.c b/test/test-touchpad.c index ccfd125d..6d5436a2 100644 --- a/test/test-touchpad.c +++ b/test/test-touchpad.c @@ -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); |