mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
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>
This commit is contained in:
@@ -1458,13 +1458,13 @@ check_interfaces (GDBusConnection *c,
|
||||
#if 0
|
||||
if (g_strv_length ((gchar**)interfaces) != i - 1)
|
||||
{
|
||||
g_print ("expected ");
|
||||
g_printerr ("expected ");
|
||||
for (i = 0; interfaces[i]; i++)
|
||||
g_print ("%s ", interfaces[i]);
|
||||
g_print ("\ngot ");
|
||||
g_printerr ("%s ", interfaces[i]);
|
||||
g_printerr ("\ngot ");
|
||||
for (i = 0; node_info->interfaces[i]; i++)
|
||||
g_print ("%s ", node_info->interfaces[i]->name);
|
||||
g_print ("\n");
|
||||
g_printerr ("%s ", node_info->interfaces[i]->name);
|
||||
g_printerr ("\n");
|
||||
}
|
||||
#endif
|
||||
g_assert_cmpint (g_strv_length ((gchar**)interfaces), ==, i - 1);
|
||||
|
Reference in New Issue
Block a user