test: only expect one button event from the intuos-like test

BTN_0 is the only one guaranteed to exist (otherwise we skip the test)
so let's ensure we have at least one event - all the others will fail if
we don't get the right event sent.

This enables the test to run against devices that only have one button.

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/967>
This commit is contained in:
Peter Hutterer 2024-01-31 14:32:15 +10:00 committed by Marge Bot
parent 566857bd98
commit d487ca36a4

View file

@ -229,7 +229,7 @@ START_TEST(pad_button_intuos)
litest_assert_empty_queue(li);
ck_assert_int_gt(count, 3);
ck_assert_int_ge(count, 1);
#endif
}
END_TEST