From 2e0c3c4af40e8baa008c378e17eae0426e46443d Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 26 Jun 2025 15:31:35 +1000 Subject: [PATCH] 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: --- test/litest.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/litest.c b/test/litest.c index 3d60626c..68d6208f 100644 --- a/test/litest.c +++ b/test/litest.c @@ -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;