test: fix the valgrind/debugger check

First condition was always false since we never run gdb and valgrind at
the same time.

Fixes: bd7b91065b ("evdev: warn if our event processing lags by 10ms or more")
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1221>
This commit is contained in:
Peter Hutterer 2025-06-12 12:52:31 +10:00
parent 24c84a65b4
commit ef15d7ed08

View file

@ -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")) {