mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 23:58:54 +02:00
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:
@@ -5726,17 +5726,19 @@ g_dbus_connection_call_done (GObject *source,
|
|||||||
_g_dbus_debug_print_lock ();
|
_g_dbus_debug_print_lock ();
|
||||||
g_print ("========================================================================\n"
|
g_print ("========================================================================\n"
|
||||||
"GDBus-debug:Call:\n"
|
"GDBus-debug:Call:\n"
|
||||||
" <<<< ASYNC COMPLETE %s() (serial %d)\n"
|
" <<<< ASYNC COMPLETE %s()",
|
||||||
" ",
|
state->method_name);
|
||||||
state->method_name,
|
|
||||||
g_dbus_message_get_reply_serial (reply));
|
|
||||||
if (reply != NULL)
|
if (reply != NULL)
|
||||||
{
|
{
|
||||||
g_print ("SUCCESS\n");
|
g_print (" (serial %d)\n"
|
||||||
|
" SUCCESS\n",
|
||||||
|
g_dbus_message_get_reply_serial (reply));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
g_print ("FAILED: %s\n",
|
g_print ("\n"
|
||||||
|
" FAILED: %s\n",
|
||||||
error->message);
|
error->message);
|
||||||
}
|
}
|
||||||
_g_dbus_debug_print_unlock ();
|
_g_dbus_debug_print_unlock ();
|
||||||
|
@@ -368,6 +368,9 @@ main (int argc,
|
|||||||
{
|
{
|
||||||
gint ret;
|
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_init (&argc, &argv, NULL);
|
||||||
|
|
||||||
g_test_add ("/gdbus/connection/flush/busy", Fixture, NULL,
|
g_test_add ("/gdbus/connection/flush/busy", Fixture, NULL,
|
||||||
|
@@ -1256,6 +1256,10 @@ main (int argc,
|
|||||||
char *argv[])
|
char *argv[])
|
||||||
{
|
{
|
||||||
int ret;
|
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);
|
g_test_init (&argc, &argv, NULL);
|
||||||
|
|
||||||
/* all the tests rely on a shared main loop */
|
/* all the tests rely on a shared main loop */
|
||||||
|
@@ -515,6 +515,9 @@ int
|
|||||||
main (int argc,
|
main (int argc,
|
||||||
char *argv[])
|
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_init (&argc, &argv, NULL);
|
||||||
|
|
||||||
g_test_add_func ("/gdbus/server-auth", test_server_auth);
|
g_test_add_func ("/gdbus/server-auth", test_server_auth);
|
||||||
|
Reference in New Issue
Block a user