summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2021-02-12 10:24:43 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2021-02-12 11:05:38 +1000
commitd838e3a3a4cc6eb4c5126094cde1e73197fda4d1 (patch)
treecd8d5a4e431810a0e483998312595401c6d5d103 /test
parentaed15dd791648fcb8f6102f6f86917ca18b5521b (diff)
downloadlibinput-d838e3a3a4cc6eb4c5126094cde1e73197fda4d1.tar.gz
test: use motion events to check the "system is too slow" message
Using buttons for this test can trigger debounce warnings instead (in addition?) to the warning we actually check for. Let's use motion events instead and double the loop while we're at it so we have double the chance of triggering at least one warning. Fixes #574 for unknown reasons Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'test')
-rw-r--r--test/test-misc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/test-misc.c b/test/test-misc.c
index 4a946d4b..c3523bf6 100644
--- a/test/test-misc.c
+++ b/test/test-misc.c
@@ -715,10 +715,9 @@ START_TEST(timer_delay_bug_warning)
user_data->private = &warning_triggered;
libinput_log_set_handler(li, timer_delay_warning);
- for (int i = 0; i < 10; i++) {
- litest_button_click(dev, BTN_LEFT, true);
- libinput_dispatch(li);
- litest_button_click(dev, BTN_LEFT, false);
+ for (int i = 0; i < 20; i++) {
+ litest_event(dev, EV_REL, REL_X, -1);
+ litest_event(dev, EV_SYN, SYN_REPORT, 0);
msleep(11);
libinput_dispatch(li);
}