GError *error = NULL;
GVariant *ret;
- g_print (".");
+ if (!g_test_quiet ())
+ g_print (".");
proxy = g_dbus_proxy_new_sync (connection,
G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START |
/* TODO: should call session_bus_down() but that requires waiting
* for all the oustanding method calls to complete...
*/
+ if (!g_test_quiet ())
+ g_print ("\n");
}
int
(GAsyncReadyCallback) sleep_cb,
data);
g_main_loop_run (data->thread_loop);
- g_print ("A");
+ if (!g_test_quiet ())
+ g_print ("A");
//g_debug ("done invoking async (%p)", g_thread_self ());
}
else
-1,
NULL,
&error);
- g_print ("S");
+ if (!g_test_quiet ())
+ g_print ("S");
//g_debug ("done invoking sync (%p)", g_thread_self ());
g_assert_no_error (error);
g_assert (result != NULL);
g_assert_cmpint (elapsed_msec, >=, 3950);
g_assert_cmpint (elapsed_msec, <, 8000);
- g_print (" ");
+ if (!g_test_quiet ())
+ g_print (" ");
}
}
g_object_unref (proxy);
g_object_unref (connection);
+
+ if (!g_test_quiet ())
+ g_print ("\n");
}
#define SLEEP_MIN_USEC 1