From 6eff9f8263541053b66d10960e909707ed592f62 Mon Sep 17 00:00:00 2001 From: Martin Wolf Date: Fri, 19 Mar 2010 12:28:23 +0200 Subject: Updated DBus configuration for tests, moved header file for dbus-qeventloop to proper include dir, repaired small bug in pong server for tests, renamed tests for dbus-qeventloop --- tests/test-dbus-pong/test-dbus-pong.cpp | 2 +- tests/test-dbus-qeventloop.conf | 14 ++++++++++++++ tests/tests.pro | 4 +++- tests/tests.xml | 2 +- 4 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 tests/test-dbus-qeventloop.conf (limited to 'tests') diff --git a/tests/test-dbus-pong/test-dbus-pong.cpp b/tests/test-dbus-pong/test-dbus-pong.cpp index fa4f71c..bdd610a 100644 --- a/tests/test-dbus-pong/test-dbus-pong.cpp +++ b/tests/test-dbus-pong/test-dbus-pong.cpp @@ -42,7 +42,7 @@ int main(int argc, char **argv) QDBusConnection* myBus; if (useSessionBus) { - myBus = new QDBusConnection(QDBusConnection::systemBus().sessionBus()); + myBus = new QDBusConnection(QDBusConnection::sessionBus().sessionBus()); qDebug("Using session bus ..."); } else { diff --git a/tests/test-dbus-qeventloop.conf b/tests/test-dbus-qeventloop.conf new file mode 100644 index 0000000..bd231a3 --- /dev/null +++ b/tests/test-dbus-qeventloop.conf @@ -0,0 +1,14 @@ + + + + + + + + + + + + + diff --git a/tests/tests.pro b/tests/tests.pro index 0c969df..3d0658c 100644 --- a/tests/tests.pro +++ b/tests/tests.pro @@ -16,4 +16,6 @@ testsxml.path = /usr/share/libresourceqt-tests/ testsxml.files = tests.xml testrunner.path = /usr/lib/libresourceqt-tests/ testrunner.files = test-dbus-qeventloop-runner.sh -INSTALLS = testsxml testrunner +dbusconf.path = /etc/dbus-1/system.d/ +dbusconf.files = test-dbus-qeventloop.conf +INSTALLS = testsxml testrunner dbusconf diff --git a/tests/tests.xml b/tests/tests.xml index 5175902..f73b9da 100644 --- a/tests/tests.xml +++ b/tests/tests.xml @@ -26,7 +26,7 @@ - + /usr/lib/libresourceqt-tests/test-dbus-qeventloop-runner.sh -- cgit v1.2.3