mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 09:10:04 +01:00
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:
parent
d6e54c3597
commit
30c6d5983d
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue