tests: replace most g_print() with g_printerr()
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 11 May 2015 16:03:00 +0000 (17:03 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 11 May 2015 19:24:56 +0000 (20:24 +0100)
commit45dae4b5063f9af7de8211ced95dd73cc770a86e
tree436ba9362b94cb506b87965398694362066f0ff7
parent064183a633b7fcfd9b7c1b5a2917fb6f0e9128d3
tests: replace most g_print() with g_printerr()

I searched all files that mention g_test_run, and replaced most
g_print() calls. This avoids interfering with TAP. Exceptions:

* gio/tests/network-monitor: a manual mode that is run by
  "./network-monitor --watch" is unaffected
* glib/gtester.c: not a test
* glib/gtestutils.c: not a test
* glib/tests/logging.c: specifically exercising g_print()
* glib/tests/markup-parse.c: a manual mode that is run by
  "./markup-parse --cdata-as-text" is unaffected
* glib/tests/testing.c: specifically exercising capture of stdout
  in subprocesses
* glib/tests/utils.c: captures a subprocess's stdout
* glib/tests/testglib.c: exercises an assertion failure in g_print()

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>
29 files changed:
gio/tests/defaultvalue.c
gio/tests/g-file.c
gio/tests/gdbus-connection.c
gio/tests/gdbus-export.c
gio/tests/gdbus-peer.c
gio/tests/gdbus-proxy-threads.c
gio/tests/gdbus-test-codegen.c
gio/tests/gdbus-threading.c
gio/tests/live-g-file.c
glib/tests/1bit-mutex.c
glib/tests/base64.c
glib/tests/bookmarkfile.c
glib/tests/cond.c
glib/tests/fileutils.c
glib/tests/gdatetime.c
glib/tests/mutex.c
glib/tests/private.c
glib/tests/queue.c
glib/tests/rec-mutex.c
glib/tests/rwlock.c
glib/tests/sequence.c
glib/tests/shell.c
glib/tests/utils.c
gobject/tests/binding.c
gobject/tests/dynamictests.c
gobject/tests/private.c
gobject/tests/threadtests.c
tests/asyncqueue-test.c
tests/testglib.c