Merge branch 'wip/hadess/add-dbus-tests-debug' into 'master'

tests: Enable GDBus debug for a number of unreliable tests

See merge request GNOME/glib!1271
This commit is contained in:
Philip Withnall 2019-12-11 12:52:55 +00:00
commit 2f6010eabf
4 changed files with 18 additions and 6 deletions

View File

@ -5726,17 +5726,19 @@ g_dbus_connection_call_done (GObject *source,
_g_dbus_debug_print_lock ();
g_print ("========================================================================\n"
"GDBus-debug:Call:\n"
" <<<< ASYNC COMPLETE %s() (serial %d)\n"
" ",
state->method_name,
g_dbus_message_get_reply_serial (reply));
" <<<< ASYNC COMPLETE %s()",
state->method_name);
if (reply != NULL)
{
g_print ("SUCCESS\n");
g_print (" (serial %d)\n"
" SUCCESS\n",
g_dbus_message_get_reply_serial (reply));
}
else
{
g_print ("FAILED: %s\n",
g_print ("\n"
" FAILED: %s\n",
error->message);
}
_g_dbus_debug_print_unlock ();

View File

@ -368,6 +368,9 @@ main (int argc,
{
gint ret;
/* FIXME: Add debug for https://gitlab.gnome.org/GNOME/glib/issues/1929 */
g_setenv ("G_DBUS_DEBUG", "authentication", TRUE);
g_test_init (&argc, &argv, NULL);
g_test_add ("/gdbus/connection/flush/busy", Fixture, NULL,

View File

@ -1256,6 +1256,10 @@ main (int argc,
char *argv[])
{
int ret;
/* FIXME: Add debug for https://gitlab.gnome.org/GNOME/glib/issues/1957 */
g_setenv ("G_DBUS_DEBUG", "all", TRUE);
g_test_init (&argc, &argv, NULL);
/* all the tests rely on a shared main loop */

View File

@ -515,6 +515,9 @@ int
main (int argc,
char *argv[])
{
/* FIXME: Add debug for https://gitlab.gnome.org/GNOME/glib/issues/1954 */
g_setenv ("G_DBUS_DEBUG", "all", TRUE);
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/gdbus/server-auth", test_server_auth);