mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 05:56:14 +01:00
Merge branch 'connection-slow-debugging' into 'master'
tests: Add more debug information to gdbus-connection-slow See merge request GNOME/glib!1865
This commit is contained in:
commit
e1a99c7f75
@ -86,17 +86,25 @@ test_connection_flush (void)
|
||||
gboolean ret;
|
||||
gint exit_status;
|
||||
guint timeout_mainloop_id;
|
||||
gchar *flush_helper_stdout = NULL;
|
||||
gchar *flush_helper_stderr = NULL;
|
||||
|
||||
error = NULL;
|
||||
ret = g_spawn_command_line_sync (flush_helper,
|
||||
NULL, /* stdout */
|
||||
NULL, /* stderr */
|
||||
&flush_helper_stdout,
|
||||
&flush_helper_stderr,
|
||||
&exit_status,
|
||||
&error);
|
||||
&error) &&
|
||||
g_spawn_check_exit_status (exit_status, &error);
|
||||
if (!ret)
|
||||
g_test_message ("Child process ‘%s’ failed. stdout:\n%s\nstderr:\n%s",
|
||||
flush_helper, flush_helper_stdout, flush_helper_stderr);
|
||||
|
||||
g_free (flush_helper_stdout);
|
||||
g_free (flush_helper_stderr);
|
||||
|
||||
g_assert_no_error (error);
|
||||
g_spawn_check_exit_status (exit_status, &error);
|
||||
g_assert_no_error (error);
|
||||
g_assert (ret);
|
||||
g_assert_true (ret);
|
||||
|
||||
timeout_mainloop_id = g_timeout_add (1000, test_connection_flush_on_timeout, GUINT_TO_POINTER (n));
|
||||
g_main_loop_run (loop);
|
||||
|
Loading…
Reference in New Issue
Block a user