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

When a debugger is attached to a test and the -xml option is used then it will cause some outputted tags to be lost

    XMLWordPrintable

Details

    • macOS

    Description

      When a debugger is attached to a test and the -xml option is used then it will cause some outputted tags to be lost. Such as the opening testcase ones. This only happens on macOS and when a debugger is used with the test. The output is:

      <?xml version="1.0" encoding="UTF-8"?> 
      <TestCase name="TestQString"> 
      <Environment> 
      <QtVersion>5.12.0</QtVersion> 
      <QtBuild>Qt 5.12.0 (x86_64-little_endian-lp64 shared (dynamic) 
      release build; by Clang 10.0.0 (clang-1000.11.45.2) (Apple))</QtBuild> 
      <QTestVersion>5.12.0</QTestVersion> 
      </Environment> 
      2019-01-17 10:35:49.184608+0100 tutorial1[13517:484227] [qt.test.enter] 
      TestQString::initTestCase() 
      2019-01-17 10:35:49.184649+0100 tutorial1[13517:484227] [qt.test.pass] 
      TestQString::initTestCase() 
      <Duration msecs="0.160942"/> 
      </TestFunction> 
      2019-01-17 10:35:49.184703+0100 tutorial1[13517:484227] [qt.test.enter] 
      TestQString::toUpper() 
      2019-01-17 10:35:49.185013+0100 tutorial1[13517:484227] [qt.test.pass] 
      TestQString::toUpper() 
      <Duration msecs="0.332396"/> 
      </TestFunction> 
      2019-01-17 10:35:49.185054+0100 tutorial1[13517:484227] [qt.test.enter] 
      TestQString::cleanupTestCase() 
      2019-01-17 10:35:49.185066+0100 tutorial1[13517:484227] [qt.test.pass] 
      TestQString::cleanupTestCase() 
      <Duration msecs="0.038552"/> 
      </TestFunction> 
      <Duration msecs="0.700021"/> 
      </TestCase> 
      

      Note, it is missing entries like:

      <TestFunction name="initTestCase"> 
      

      This can be reproduced with any test on macOS with a debugger attached.

      Attachments

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

        Activity

          People

            vestbo Tor Arne Vestbø
            andysh Andy Shaw
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes