test: abort on libinput bugs again

This was always intended but a bug prevented the actual abort.
strstr returns NULL when we cannot find the substring so we always
triggered the first noop condition on bugs.

Fixes: bd7b91065b ("evdev: warn if our event processing lags by 10ms or more")
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1048>
This commit is contained in:
Peter Hutterer 2024-09-13 12:56:28 +10:00
parent 596d86ecc1
commit 27e3897420

View file

@ -733,9 +733,9 @@ litest_log_handler(struct libinput *libinput,
* short, don't abort if during a valgrind run we get a
* negative offset */
if ((RUNNING_ON_VALGRIND && in_debugger) ||
!strstr(format, "scheduled expiry is in the past")) {
strstr(format, "scheduled expiry is in the past")) {
/* noop */
} else if (!strstr(format, "event processing lagging behind")) {
} else if (strstr(format, "event processing lagging behind")) {
/* noop */
} else {
litest_abort_msg("libinput bug triggered, aborting.\n");