summaryrefslogtreecommitdiffstats
path: root/tests/auto/integration/tst_integration.cpp
diff options
context:
space:
mode:
authorBrett Stottlemyer <bstottle@ford.com>2020-06-27 08:52:02 -0400
committerBrett Stottlemyer <bstottle@ford.com>2020-06-29 09:39:05 -0400
commit40481e5600f3a3866f7b8b19f48a8e5954fbcb70 (patch)
tree19ddb4a9fa446feeb55dd71363a8c51768096724 /tests/auto/integration/tst_integration.cpp
parent8f0ef5b6f2e6535fcba83db0ced9e2243ef57de2 (diff)
Ensure tests work in cmake Multi-Config
There are several tests that search for an executable to run. In Multi- Config, where different builds are put in subfolders, the searches would fail. Change-Id: I04100a39a8b05be7c28732a64605b302ff215e5d Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Michael Brasser <michael.brasser@live.com>
Diffstat (limited to 'tests/auto/integration/tst_integration.cpp')
-rw-r--r--tests/auto/integration/tst_integration.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/auto/integration/tst_integration.cpp b/tests/auto/integration/tst_integration.cpp
index a110dd7..3397e37 100644
--- a/tests/auto/integration/tst_integration.cpp
+++ b/tests/auto/integration/tst_integration.cpp
@@ -220,6 +220,7 @@ private slots:
void initTestCase()
{
+ QVERIFY(TestUtils::init("integration"));
QLoggingCategory::setFilterRules("qt.remoteobjects.warning=false");
// use different paths in QRemoteObjectSettingsStore
@@ -1331,9 +1332,7 @@ private slots:
QFETCH_GLOBAL(QUrl, hostUrl);
if (hostUrl.scheme() != QRemoteObjectStringLiterals::local())
QSKIP("Skipping 'local' specific backend for non-local test.");
- const auto progName = TestUtils::findExecutable("localsockettestserver", {
- QCoreApplication::applicationDirPath() + "/../localsockettestserver"
- });
+ const auto progName = TestUtils::findExecutable("localsockettestserver", "/localsockettestserver");
//create a fake socket as killing doesn't produce a necessarily unusable socket
QFile fake(QDir::temp().absoluteFilePath(QStringLiteral("crashMe")));
@@ -1365,9 +1364,7 @@ private slots:
QFETCH_GLOBAL(QUrl, hostUrl);
if (hostUrl.scheme() != QRemoteObjectStringLiterals::local())
QSKIP("Skipping 'local' specific backend for non-local test.");
- const auto progName = TestUtils::findExecutable("localsockettestserver", {
- QCoreApplication::applicationDirPath() + "/../localsockettestserver"
- });
+ const auto progName = TestUtils::findExecutable("localsockettestserver", "/localsockettestserver");
QProcess testServer;
testServer.start(progName, QStringList());