Integrate GTestDBus deeper into gtester
@xclaesse
Submitted by Xavier Claessens Assigned to David Zeuthen
Link to original bug (#711092)
Description
I wanted to add as public function:
gint g_test_dbus_run (GTestDBus *dbus) { gint ret;
if (dbus == NULL) dbus = g_test_dbus_new (G_TEST_DBUS_NONE); else g_object_ref (dbus);
g_test_dbus_up (dbus); ret = g_test_run (); g_test_dbus_down (dbus); g_object_unref (dbus);
return ret; }
But that would encourage re-using the same dbus connection for each individual test within a file, instead of isolating them by creating a new GTestDBus in each test's setup/teardown.
Maybe we can inform somehow gtester that we want a dbus session for each test, and it will do the setup/teardown for us magically?