summaryrefslogtreecommitdiffstats
path: root/tests/auto/qopcuaclient/tst_client.cpp
diff options
context:
space:
mode:
authorMaurice Kalinowski <maurice.kalinowski@qt.io>2018-05-24 09:58:27 +0200
committerMaurice Kalinowski <maurice.kalinowski@qt.io>2018-05-24 08:12:38 +0000
commitca186eb372c43c5210a366ed2185b86d14d90a6f (patch)
tree2cde2a8b77b748c61668915651f9fe6713ec0bfc /tests/auto/qopcuaclient/tst_client.cpp
parent78d016e79ed8bc3d2d3f1c2dac90a4c75392d35b (diff)
Fix running tests on windows
Test binaries are stored in debug/release subdirectories on Windows. Hence modify the path to find the testserver. Change-Id: I0a889caefc6ba3d7796a5a7d67fc87909ead59e2 Reviewed-by: Rainer Keller <Rainer.Keller@qt.io>
Diffstat (limited to 'tests/auto/qopcuaclient/tst_client.cpp')
-rw-r--r--tests/auto/qopcuaclient/tst_client.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/qopcuaclient/tst_client.cpp b/tests/auto/qopcuaclient/tst_client.cpp
index 7bf8736..ca048e9 100644
--- a/tests/auto/qopcuaclient/tst_client.cpp
+++ b/tests/auto/qopcuaclient/tst_client.cpp
@@ -336,6 +336,9 @@ void Tst_QOpcUaClient::initTestCase()
if (qEnvironmentVariableIsEmpty("OPCUA_HOST") && qEnvironmentVariableIsEmpty("OPCUA_PORT")) {
m_testServerPath = qApp->applicationDirPath()
+#ifdef Q_OS_WIN
+ + QLatin1String("/..")
+#endif
+ QLatin1String("/../../open62541-testserver/open62541-testserver")
#ifdef Q_OS_WIN
+ QLatin1String(".exe")