summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2024-01-31 14:32:15 +1000
committerMarge Bot <emma+marge@anholt.net>2024-02-20 02:49:05 +0000
commitd487ca36a4730d41c71a293b910bd0f48e58eac0 (patch)
tree44cedbfc203a72c388dc2ef73af1f094548eb2c0
parent566857bd98131009699c9ab6efc7af37afd43fd0 (diff)
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>
-rw-r--r--test/test-pad.c2
1 files changed, 1 insertions, 1 deletions
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