aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/debugger/shared/debugutil.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2018-01-15 13:41:01 +0100
committerUlf Hermann <ulf.hermann@qt.io>2018-07-10 16:35:48 +0000
commitb98af3e0f3bfdc0187d7955683f90a7012a2d133 (patch)
tree682d7be57ef07cb73f4b568743b9c86bd3deb313 /tests/auto/qml/debugger/shared/debugutil.cpp
parent58c988e090bac094e8c2e8b77975c1c720725a6e (diff)
QML Profiler: Test that only one Complete message is sent per session
Task-number: QTBUG-65767 Change-Id: I0485092f9a36da73e9e86ef8216be736b6560ec1 Reviewed-by: Michael Brasser <michael.brasser@live.com>
Diffstat (limited to 'tests/auto/qml/debugger/shared/debugutil.cpp')
-rw-r--r--tests/auto/qml/debugger/shared/debugutil.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/qml/debugger/shared/debugutil.cpp b/tests/auto/qml/debugger/shared/debugutil.cpp
index 602e533388..68446b53a4 100644
--- a/tests/auto/qml/debugger/shared/debugutil.cpp
+++ b/tests/auto/qml/debugger/shared/debugutil.cpp
@@ -252,3 +252,12 @@ void ClientStateHandler::checkStates()
m_othersAsExpected = true;
emit allOk();
}
+
+QString debugJsServerPath(const QString &selfPath)
+{
+ static const char *debugserver = "qqmldebugjsserver";
+ QString appPath = QCoreApplication::applicationDirPath();
+ const int position = appPath.lastIndexOf(selfPath);
+ return (position == -1 ? appPath : appPath.replace(position, selfPath.length(), debugserver))
+ + "/" + debugserver;
+}