gio/tests: Use default log writer to stderr for launched processes

We don't want to bother TAP parser with subprocess messages when using
verbose logging, so let's just use stderr by default.
This commit is contained in:
Marco Trevisan (Treviño) 2023-01-12 18:19:43 +01:00
parent 19c7d4f15e
commit ed8810216a
4 changed files with 8 additions and 0 deletions

View File

@ -125,6 +125,8 @@ main (gint argc, gchar *argv[])
GMainLoop *loop;
guint id;
g_log_writer_default_set_use_stderr (TRUE);
loop = g_main_loop_new (NULL, FALSE);
id = g_bus_own_name (G_BUS_TYPE_SESSION,

View File

@ -98,6 +98,8 @@ main (gint argc, gchar *argv[])
{
guint id;
g_log_writer_default_set_use_stderr (TRUE);
loop = g_main_loop_new (NULL, FALSE);
introspection_data = g_dbus_node_info_new_for_xml (introspection_xml, NULL);
g_assert (introspection_data != NULL);

View File

@ -1686,6 +1686,8 @@ main (int argc, char **argv)
{
g_setenv ("LC_ALL", "C", TRUE);
g_log_writer_default_set_use_stderr (TRUE);
g_test_init (&argc, &argv, NULL);
if (!g_test_subprocess ())

View File

@ -843,6 +843,8 @@ main (int argc, char *argv[])
{
guint owner_id;
g_log_writer_default_set_use_stderr (TRUE);
introspection_data = g_dbus_node_info_new_for_xml (introspection_xml, NULL);
properties = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, (GDestroyNotify)g_variant_unref);
g_hash_table_insert (properties, g_strdup ("y"), g_variant_ref_sink (g_variant_new_byte (1)));