From 5e7214d0fce9b9214a076d01b9e318d097aa41b4 Mon Sep 17 00:00:00 2001 From: Vsevolod Buzinov Date: Thu, 10 Jun 2010 12:12:55 +0300 Subject: Fixed test-resource-engine (replaced session bus with system bus as required by libresourceqt) --- tests/test-resource-engine/test-resource-engine.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') 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); -- cgit v1.2.3