test: only check error messages for bugs

The use of the bug log handler should be replaced with the captured logs
now but meanwhile: don't abort if we're running in --verbose mode and
something prints a debug message before our expected bug error message.

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1250>
This commit is contained in:
Peter Hutterer 2025-06-26 15:31:35 +10:00 committed by Marge Bot
parent d9a949657e
commit 2e0c3c4af4

View file

@ -2167,7 +2167,8 @@ litest_bug_log_handler(struct libinput *libinput,
const char *format,
va_list args)
{
if (strstr(format, "client bug: ") ||
if (pri != LIBINPUT_LOG_PRIORITY_ERROR ||
strstr(format, "client bug: ") ||
strstr(format, "libinput bug: ") ||
strstr(format, "kernel bug: "))
return;