From ef15d7ed08b7b7af082103f8c2acc2224da59488 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 12 Jun 2025 12:52:31 +1000 Subject: [PATCH] test: fix the valgrind/debugger check First condition was always false since we never run gdb and valgrind at the same time. Fixes: bd7b91065b13 ("evdev: warn if our event processing lags by 10ms or more") Part-of: --- test/litest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/litest.c b/test/litest.c index 17264547..7a2db055 100644 --- a/test/litest.c +++ b/test/litest.c @@ -1323,7 +1323,7 @@ litest_log_handler(struct libinput *libinput, /* valgrind is too slow and some of our offsets are too * short, don't abort if during a valgrind run we get a * negative offset */ - if ((RUNNING_ON_VALGRIND && in_debugger) || + if ((RUNNING_ON_VALGRIND || in_debugger) && strstr(format, "scheduled expiry is in the past")) { /* noop */ } else if (strstr(format, "event processing lagging behind")) {