diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2018-01-15 13:41:01 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2018-07-10 16:35:48 +0000 |
commit | b98af3e0f3bfdc0187d7955683f90a7012a2d133 (patch) | |
tree | 682d7be57ef07cb73f4b568743b9c86bd3deb313 /tests/auto/qml/debugger/shared | |
parent | 58c988e090bac094e8c2e8b77975c1c720725a6e (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')
-rw-r--r-- | tests/auto/qml/debugger/shared/debugutil.cpp | 9 | ||||
-rw-r--r-- | tests/auto/qml/debugger/shared/debugutil_p.h | 2 |
2 files changed, 11 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; +} diff --git a/tests/auto/qml/debugger/shared/debugutil_p.h b/tests/auto/qml/debugger/shared/debugutil_p.h index cc7c9bd19d..1c32590305 100644 --- a/tests/auto/qml/debugger/shared/debugutil_p.h +++ b/tests/auto/qml/debugger/shared/debugutil_p.h @@ -141,4 +141,6 @@ private: bool m_othersAsExpected = false; }; +QString debugJsServerPath(const QString &selfPath); + #endif // DEBUGUTIL_P_H |