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:
Peter Hutterer 2022-06-07 09:55:32 +10:00
parent 164227d193
commit 7688f35477

View file

@ -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,