mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 21:40:40 +01:00
test: ensure we always have an axis event where we expect one
If we never got an event, we'd skip over the while loop and generate a false positive. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
164227d193
commit
7688f35477
1 changed files with 1 additions and 0 deletions
|
|
@ -632,6 +632,7 @@ test_high_and_low_wheel_events_value(struct litest_device *dev,
|
|||
LIBINPUT_POINTER_AXIS_SCROLL_HORIZONTAL;
|
||||
|
||||
event = libinput_get_event(li);
|
||||
litest_assert_notnull(event);
|
||||
|
||||
while(event) {
|
||||
ptrev = litest_is_axis_event(event,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue