[gtk/matthiasc/for-master] Don't spam debug messages into TAP output




commit c86789427d6c9dd55d6a8ed2799bd8450cedbf3d
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Nov 16 18:45:34 2021 -0500

    Don't spam debug messages into TAP output
    
    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 | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/testsuite/reftests/gtk-reftest.c b/testsuite/reftests/gtk-reftest.c
index 232108f46a..3872f554dc 100644
--- a/testsuite/reftests/gtk-reftest.c
+++ b/testsuite/reftests/gtk-reftest.c
@@ -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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]