summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/dbus/qdbusperformance
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2014-12-30 09:35:39 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-12-30 09:35:39 +0100
commit4295203dd67a4c4d0aa0fe1a8b116069542e4474 (patch)
treea3b2b1e074b7b0838b89b224506fab6818c61acc /tests/benchmarks/dbus/qdbusperformance
parent8f0e84bec513ad28c3ec479053fbc59add3959e1 (diff)
parentaaff94c2df665035addb90714bab4722003894da (diff)
Merge "Merge remote-tracking branch 'origin/5.4' into dev" into refs/staging/dev
Diffstat (limited to 'tests/benchmarks/dbus/qdbusperformance')
-rw-r--r--tests/benchmarks/dbus/qdbusperformance/server/server.cpp1
-rw-r--r--tests/benchmarks/dbus/qdbusperformance/server/server.pro1
-rw-r--r--tests/benchmarks/dbus/qdbusperformance/tst_qdbusperformance.cpp8
3 files changed, 7 insertions, 3 deletions
diff --git a/tests/benchmarks/dbus/qdbusperformance/server/server.cpp b/tests/benchmarks/dbus/qdbusperformance/server/server.cpp
index 12ae6ec6fb..6ee13b5c71 100644
--- a/tests/benchmarks/dbus/qdbusperformance/server/server.cpp
+++ b/tests/benchmarks/dbus/qdbusperformance/server/server.cpp
@@ -51,6 +51,7 @@ int main(int argc, char *argv[])
ServerObject obj(objectPath, con);
printf("ready.\n");
+ fflush(stdout);
return app.exec();
}
diff --git a/tests/benchmarks/dbus/qdbusperformance/server/server.pro b/tests/benchmarks/dbus/qdbusperformance/server/server.pro
index b38623b099..c913e90afb 100644
--- a/tests/benchmarks/dbus/qdbusperformance/server/server.pro
+++ b/tests/benchmarks/dbus/qdbusperformance/server/server.pro
@@ -1,6 +1,7 @@
SOURCES = server.cpp
HEADERS = ../serverobject.h
TARGET = server
+DESTDIR = .
QT += dbus
QT -= gui
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/benchmarks/dbus/qdbusperformance/tst_qdbusperformance.cpp b/tests/benchmarks/dbus/qdbusperformance/tst_qdbusperformance.cpp
index 5b3be02c33..4bc3c94cd0 100644
--- a/tests/benchmarks/dbus/qdbusperformance/tst_qdbusperformance.cpp
+++ b/tests/benchmarks/dbus/qdbusperformance/tst_qdbusperformance.cpp
@@ -80,11 +80,13 @@ void tst_QDBusPerformance::initTestCase()
&QTestEventLoop::instance(), SLOT(exitLoop()));
#ifdef Q_OS_WIN
- proc.start("server");
+# define EXE ".exe"
#else
- proc.start("./server/server");
+# define EXE ""
#endif
- QVERIFY(proc.waitForStarted());
+ proc.start(QFINDTESTDATA("server/server" EXE));
+ QVERIFY2(proc.waitForStarted(), qPrintable(proc.errorString()));
+ QVERIFY(proc.waitForReadyRead());
QTestEventLoop::instance().enterLoop(5);
QVERIFY(con.interface()->isServiceRegistered(serviceName));