summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/tst_opcua.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/tst_opcua.cpp')
-rw-r--r--tests/auto/declarative/tst_opcua.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/declarative/tst_opcua.cpp b/tests/auto/declarative/tst_opcua.cpp
index a14b05d..2807a3f 100644
--- a/tests/auto/declarative/tst_opcua.cpp
+++ b/tests/auto/declarative/tst_opcua.cpp
@@ -63,6 +63,11 @@ public slots:
if (qEnvironmentVariableIsEmpty("OPCUA_HOST") && qEnvironmentVariableIsEmpty("OPCUA_PORT")) {
m_testServerPath = qApp->applicationDirPath()
+
+#if defined(Q_OS_MACOS)
+ + QLatin1String("/../../open62541-testserver/open62541-testserver.app/Contents/MacOS/open62541-testserver")
+#else
+
#ifdef Q_OS_WIN
+ QLatin1String("/..")
#endif
@@ -70,6 +75,8 @@ public slots:
#ifdef Q_OS_WIN
+ QLatin1String(".exe")
#endif
+
+#endif
;
qDebug() << "Server Path:" << m_testServerPath;
if (!QFile::exists(m_testServerPath)) {