Don't spam debug messages into TAP output
authorMatthias Clasen <mclasen@redhat.com>
Tue, 16 Nov 2021 23:45:34 +0000 (18:45 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 16 Nov 2021 23:45:34 +0000 (18:45 -0500)
g_log_writer_standard_streams just puts all the logs
out onto stderr and stdout if we don't stop it. Pango
recently grew a bunch of g_debug calls, and those were
now showing up, making all the reftests fail.

testsuite/reftests/gtk-reftest.c

index 232108f46ace48387f651183eae43888f12b26db..3872f554dc9033892a09ae8fd481c87fcf0829df 100644 (file)
@@ -497,7 +497,10 @@ log_writer (GLogLevelFlags   log_level,
     }
 #endif
 
-  return g_log_writer_standard_streams (log_level, fields, n_fields, user_data);
+ if (!g_log_writer_default_would_drop (log_level, NULL))
+    return g_log_writer_standard_streams (log_level, fields, n_fields, user_data);
+
+  return G_LOG_WRITER_HANDLED;
 }
 
 int