summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2014-03-13 11:04:35 +1300
committerRobert Ancell <robert.ancell@canonical.com>2014-03-13 11:04:35 +1300
commit7488ac6105a8096993e1605b75768f8ffbb7e62c (patch)
treeaf47002b37aad478085f590cd49a3f0a3d16420d
parentd3dad011cba8e0f55a420d2bfdec3eae8f4df39c (diff)
downloadlightdm-git-7488ac6105a8096993e1605b75768f8ffbb7e62c.tar.gz
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 10448cc8..03c9134a 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);