summaryrefslogtreecommitdiff
path: root/testsuite/gtk/defaultvalue.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-06-17 12:05:07 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-06-17 12:06:09 -0400
commit1b265a797117198636a73ec3696d38daeb141637 (patch)
tree854c6048a7e3ab1574dff670939cc39985bc98bf /testsuite/gtk/defaultvalue.c
parent29c0dfb1d2925ca7d840d3d184a7e7bdeae9eb54 (diff)
downloadgtk+-1b265a797117198636a73ec3696d38daeb141637.tar.gz
Stop using GTestDBus
It is causing tests to timeout when libraries we are using leak bus connections, and it turns out our tests run fine without a session bus.
Diffstat (limited to 'testsuite/gtk/defaultvalue.c')
-rw-r--r--testsuite/gtk/defaultvalue.c24
1 files changed, 1 insertions, 23 deletions
diff --git a/testsuite/gtk/defaultvalue.c b/testsuite/gtk/defaultvalue.c
index ee59c32851..15c9047a93 100644
--- a/testsuite/gtk/defaultvalue.c
+++ b/testsuite/gtk/defaultvalue.c
@@ -469,9 +469,6 @@ main (int argc, char **argv)
{
const GType *otypes;
guint i;
- GTestDBus *bus;
- GMainLoop *loop;
- gint result;
const char *display, *x_r_d;
/* These must be set before gtk_test_init */
@@ -483,12 +480,6 @@ main (int argc, char **argv)
display = g_getenv ("DISPLAY");
x_r_d = g_getenv ("XDG_RUNTIME_DIR");
- /* Create one test bus for all tests, as we have a lot of very small
- * and quick tests.
- */
- bus = g_test_dbus_new (G_TEST_DBUS_NONE);
- g_test_dbus_up (bus);
-
if (display)
g_setenv ("DISPLAY", display, TRUE);
if (x_r_d)
@@ -515,18 +506,5 @@ main (int argc, char **argv)
g_free (testname);
}
- result = g_test_run();
-
- /* Work around the annoying issue that g_test_dbus_down is giving
- * us an "Error while sending AddMatch" that comes out of an idle
- */
- loop = g_main_loop_new (NULL, FALSE);
- g_timeout_add (1000, (GSourceFunc)g_main_loop_quit, loop);
- g_main_loop_run (loop);
- g_main_loop_unref (loop);
-
- g_test_dbus_down (bus);
- g_object_unref (bus);
-
- return result;
+ return g_test_run();
}