diff options
author | Jannis Voelker <jannis.voelker@basyskom.com> | 2019-01-07 16:18:22 +0100 |
---|---|---|
committer | Jannis Völker <jannis.voelker@basyskom.com> | 2019-01-08 07:44:33 +0000 |
commit | 94e9eaf7a6a449e4a8417c5d6c6b45e750795921 (patch) | |
tree | 8a2ecea4bcb38b24548ac3e9e65831b6565a41fa | |
parent | bc4004c54aeeb5d90474df445cb9be889503dfa7 (diff) |
Disable empty array test for uacpp
Change-Id: Iab4e6fa73c084ad0d608bcbe30e8e210cbc76189
Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
-rw-r--r-- | tests/auto/qopcuaclient/tst_client.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qopcuaclient/tst_client.cpp b/tests/auto/qopcuaclient/tst_client.cpp index 679ecc7..0262d1f 100644 --- a/tests/auto/qopcuaclient/tst_client.cpp +++ b/tests/auto/qopcuaclient/tst_client.cpp @@ -881,6 +881,12 @@ void Tst_QOpcUaClient::writeMultipleAttributes() void Tst_QOpcUaClient::readEmptyArrayVariable() { QFETCH(QOpcUaClient *, opcuaClient); + + // open62541 indicates an empty array with an array length of 0 and a data pointer with value 0x1. + // This test makes sure that empty arrays are handled correctly without causing a segfault. + if (opcuaClient->backend() == QLatin1String("uacpp")) + QSKIP("This test is only necessary for open62541"); + OpcuaConnector connector(opcuaClient, m_endpoint); QScopedPointer<QOpcUaNode> node(opcuaClient->node("ns=2;s=EmptyBoolArray")); |