[glib] GTestDBus: use g_printerr() for status message



commit 4865538ce3d93dda802d25cbf93743e842507c5f
Author: Simon McVittie <simon mcvittie collabora co uk>
Date:   Mon May 11 16:34:35 2015 +0100

    GTestDBus: use g_printerr() for status message
    
    This avoids any possibility of interfering with test syntax (such as
    TAP) on stdout. TAP specifically does not parse stderr.
    
    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=725981
    Reviewed-by: Colin Walters <walters verbum org>
    Signed-off-by: Simon McVittie <simon mcvittie collabora co uk>

 gio/gtestdbus.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gtestdbus.c b/gio/gtestdbus.c
index 4af270b..c7065ae 100644
--- a/gio/gtestdbus.c
+++ b/gio/gtestdbus.c
@@ -183,7 +183,7 @@ watch_parent (gint fd)
           for (n = 0; n < pids_to_kill->len; n++)
             {
               pid = g_array_index (pids_to_kill, guint, n);
-              g_print ("cleaning up pid %d\n", pid);
+              g_printerr ("cleaning up pid %d\n", pid);
               kill (pid, SIGTERM);
             }
 


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