summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2021-12-07 11:18:07 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2021-12-07 11:54:08 +1000
commita1e9150210abda0d3dd41127330cd7985d29957d (patch)
tree875bfc039de760eb70c8a375427b05dee005a264 /test
parent64a49d18b948a5b8ac88da9207689af356a081cf (diff)
downloadlibinput-a1e9150210abda0d3dd41127330cd7985d29957d.tar.gz
timer: only warn about timer expiry issues when we're more than 20ms behind
The most common trigger for this is the debouncing timer which is a mere 12ms and is effectively unavoidable, virtually every caller will trigger those messages at some point. Let's add a grace period of 20ms below which we don't log this message to avoid logspam. And in the process, bump the equivalent warning message up to 20ms as well. Related #711 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'test')
-rw-r--r--test/test-misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-misc.c b/test/test-misc.c
index 732cb12e..5f98d326 100644
--- a/test/test-misc.c
+++ b/test/test-misc.c
@@ -721,7 +721,7 @@ START_TEST(timer_delay_bug_warning)
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);
+ msleep(21);
libinput_dispatch(li);
}