[mutter] tests/test-client: Log to stderr



commit d459df9a2865f3736d47571d323efc9d73615262
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Wed Nov 17 12:09:38 2021 +0100

    tests/test-client: Log to stderr
    
    The test-client reports command results to stdout, so make sure to log
    e.g. debug messages to stderr, so they don't interfere with the result
    test-runner reads.
    
    Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/450
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2095>

 src/tests/test-client.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/tests/test-client.c b/src/tests/test-client.c
index ac2431a50d..0007d61ea2 100644
--- a/src/tests/test-client.c
+++ b/src/tests/test-client.c
@@ -935,6 +935,8 @@ main(int argc, char **argv)
   GtkCssProvider *provider;
   GError *error = NULL;
 
+  g_log_writer_default_set_use_stderr (TRUE);
+
   g_option_context_add_main_entries (context, options, NULL);
 
   if (!g_option_context_parse (context,


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