Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.4.2
-
None
Description
In this integration of qtopcua, testing on MacOS MacOS_11 (clang-x86_64):
the test tst_clientSetupInCpp appears to finish successfully, but the XML contains garbage at the end. See full log here and XML file is:
<?xml version="1.0" encoding="UTF-8"?> <TestCase name="opcua"> <Environment> <QtVersion>6.4.3</QtVersion> <QtBuild>Qt 6.4.3 (x86_64-little_endian-lp64 shared (dynamic) release build; by Apple LLVM 14.0.0 (clang-1400.0.29.202))</QtBuild> <QTestVersion>6.4.3</QTestVersion> </Environment> <TestFunction name="Create String Node Id::initTestCase"> <Incident type="pass" file="" line="0" /> <Duration msecs="0.045732"/> </TestFunction> <TestFunction name="Create String Node Id::test_nodeTest"> <Incident type="pass" file="" line="0" /> <Duration msecs="1.11372"/> </TestFunction> <TestFunction name="Create String Node Id::cleanupTestCase"> <Incident type="pass" file="" line="0" /> <Duration msecs="0.03755"/> </TestFunction> <Duration msecs="11.1473"/> </TestCase> <Message type="qwarn" file="" line="0"> <Description><![CDATA[qt.opcua.plugins.open62541.sdk.securechannel: "Connection 18 | SecureChannel 2 | Receiving the response failed with StatusCode BadConnectionClosed"]]></Description> </Message>
QTest shouldn't allow the final garbage <Message type="qwarn"> to be written to the XML file.
On the other hand, I wonder why this qwarn() was never printed to the text console, another bug by itself.