GTestDBus: use g_printerr() for status message
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 11 May 2015 15:34:35 +0000 (16:34 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 11 May 2015 19:24:30 +0000 (20:24 +0100)
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

index 4af270b..c7065ae 100644 (file)
@@ -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);
             }