summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/auto/qopcuaclient/tst_client.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qopcuaclient/tst_client.cpp b/tests/auto/qopcuaclient/tst_client.cpp
index 597b71a..7276d0c 100644
--- a/tests/auto/qopcuaclient/tst_client.cpp
+++ b/tests/auto/qopcuaclient/tst_client.cpp
@@ -315,6 +315,12 @@ Tst_QOpcUaClient::Tst_QOpcUaClient()
void Tst_QOpcUaClient::initTestCase()
{
for (const auto &backend: m_backends) {
+ // QT_TEST_CI is set to 1 in the Qt CI, see https://wiki.qt.io/CI_Environment
+ if (backend == QStringLiteral("freeopcua") && qgetenv("QT_TEST_CI") == QStringLiteral("1")) {
+ qDebug() << "The freeopcua tests randomly fail in the CI and are disabled by default";
+ continue;
+ }
+
QOpcUaClient *client = m_opcUa.createClient(backend);
QVERIFY2(client != nullptr,
QString("Loading backend failed: %1").arg(backend).toLatin1().data());