Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-111629

QTest sometimes writes messages after the last XML tag has been closed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.4.2
    • Testing: qtestlib
    • 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&#x002D;little_endian&#x002D;lp64 shared (dynamic) release build; by Apple LLVM 14.0.0 (clang&#x002D;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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            macadder Jason McDonald
            jimis Dimitrios Apostolou
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes