mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-11 15:06:14 +01:00
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:
parent
19c7d4f15e
commit
ed8810216a
@ -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,
|
||||
|
@ -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);
|
||||
|
@ -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 ())
|
||||
|
@ -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)));
|
||||
|
Loading…
Reference in New Issue
Block a user