From d487ca36a4730d41c71a293b910bd0f48e58eac0 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 31 Jan 2024 14:32:15 +1000 Subject: [PATCH] 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: --- test/test-pad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-pad.c b/test/test-pad.c index 23ff8d0f..2aeb735b 100644 --- a/test/test-pad.c +++ b/test/test-pad.c @@ -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