summaryrefslogtreecommitdiff
diff options
authorRobert Ancell <robert.ancell@canonical.com>2014-03-13 10:36:38 +1300
committerRobert Ancell <robert.ancell@canonical.com>2014-03-13 10:36:38 +1300
commit1a0ad37c4f82b65276aac7059682954e25615864 (patch)
treedf53f47671eb94bc4bf145fa62ca34e89600db43
parentc3f24ef58210ad74bfbddff18cd552d65587f774 (diff)
Fix error where we were waiting for the D-Bus to be acquired, not the name. This meant in rare cases tests could run without the required D-Bus services available.
-rw-r--r--tests/src/test-runner.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/test-runner.c b/tests/src/test-runner.c
index d66cb654..dcbfd0fc 100644
--- a/tests/src/test-runner.c
+++ b/tests/src/test-runner.c
@@ -1122,8 +1122,8 @@ start_console_kit_daemon (void)
g_bus_own_name (G_BUS_TYPE_SYSTEM,
"org.freedesktop.ConsoleKit",
G_BUS_NAME_OWNER_FLAGS_NONE,
- ck_name_acquired_cb,
NULL,
+ ck_name_acquired_cb,
NULL,
NULL,
NULL);
@@ -1377,8 +1377,8 @@ start_login1_daemon (void)
g_bus_own_name (G_BUS_TYPE_SYSTEM,
"org.freedesktop.login1",
G_BUS_NAME_OWNER_FLAGS_NONE,
- login1_name_acquired_cb,
NULL,
+ login1_name_acquired_cb,
NULL,
NULL,
NULL);