summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test-resource-engine/test-resource-engine.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test-resource-engine/test-resource-engine.cpp b/tests/test-resource-engine/test-resource-engine.cpp
index be3d66f..45091b1 100644
--- a/tests/test-resource-engine/test-resource-engine.cpp
+++ b/tests/test-resource-engine/test-resource-engine.cpp
@@ -324,11 +324,11 @@ static void verify_resproto_init(resproto_role_t role,
resconn_linkup_t callbackFunction,
DBusConnection *dbusConnection)
{
- DBusConnection *sessionBus;
- sessionBus = dbus_bus_get(DBUS_BUS_SESSION, NULL);
+ DBusConnection *systemBus;
+ systemBus = dbus_bus_get(DBUS_BUS_SYSTEM, NULL);
QVERIFY(callbackFunction != NULL);
- QVERIFY(dbusConnection == sessionBus);
+ QVERIFY(dbusConnection == systemBus);
QVERIFY(role == RESPROTO_ROLE_CLIENT);
QVERIFY(transport == RESPROTO_TRANSPORT_DBUS);
qDebug("resproto_init_calls==%u", resproto_init_calls);