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

tst_qmessagelogger::qMessagePattern(backtrace) is flaky on OpenSUSE 15.4

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • 6.5.0, 6.6.0
    • 6.5
    • Core: Other
    • None
    • Linux/X11
    • 6e68b4d83 (dev), 5036562bd (6.5)

    Description

      The tst_qlogging test case fails sporadically on OpenSUSE 15.4:

      6507: ********* Start testing of tst_qmessagehandler *********
       FAIL!  : tst_qmessagehandler::qMessagePattern(backtrace) 'output.contains(e)' returned FALSE. (Got: "[T::T|?libQt6Core.so.6?|?libQt6Core.so.6?|qFormatLogMessage|?libQt6Core.so.6?] static constructor\n[main|?libQt6Core.so.6?|?libQt6Core.so.6?|qFormatLogMessage|?libQt6Core.so.6?] qDebug\n[main|?libQt6Core.so.6?|?libQt6Core.so.6?|qFormatLogMessage|?libQt6Core.so.6?] qInfo\n[main|?libQt6Core.so.6?|?libQt6Core.so.6?|qFormatLogMessage|?libQt6Core.so.6?] qWarning\n[main|?libQt6Core.so.6?|?libQt6Core.so.6?|qFormatLogMessage|?libQt6Core.so.6?] qCritical\n[main|?libQt6Core.so.6?|?libQt6Core.so.6?|qFormatLogMessage|?libQt6Core.so.6?] qDebug with category\n[main|?libQt6Core.so.6?|?libQt6Core.so.6?|qFormatLogMessage|?libQt6Core.so.6?] qDebug2\n[MyClass::myFunction|?libQt6Core.so.6?|?libQt6Core.so.6?|qFormatLogMessage|?libQt6Core.so.6?] from_a_function 34\n[T::~T|?libQt6Core.so.6?|?libQt6Core.so.6?|qFormatLogMessage|?libQt6Core.so.6?] static destructor\n" ;  Expected: "[MyClass::myFunction|MyClass::mySlot1|?qlogging_helper?|" )
          Loc: [/home/qt/work/qt/qtbase/tests/auto/corelib/global/qlogging/tst_qlogging.cpp(792)]
       FAIL!  : tst_qmessagehandler::qMessagePattern(backtrace depth,separator) 'output.contains(e)' returned FALSE. (Got: "[T::T\n?libQt6Core.so.6?] static constructor\n[main\n?libQt6Core.so.6?] qDebug\n[main\n?libQt6Core.so.6?] qInfo\n[main\n?libQt6Core.so.6?] qWarning\n[main\n?libQt6Core.so.6?] qCritical\n[main\n?libQt6Core.so.6?] qDebug with category\n[main\n?libQt6Core.so.6?] qDebug2\n[MyClass::myFunction\n?libQt6Core.so.6?] from_a_function 34\n[T::~T\n?libQt6Core.so.6?] static destructor\n" ;  Expected: "[MyClass::myFunction\nMyClass::mySlot1] from_a_function 34" )
          Loc: [/home/qt/work/qt/qtbase/tests/auto/corelib/global/qlogging/tst_qlogging.cpp(792)]
       PASS   : tst_qmessagehandler::setMessagePattern()
       PASS   : tst_qmessagehandler::formatLogMessage(basic)
       Totals: 167 passed, 2 failed, 0 skipped, 0 blacklisted, 322ms
      

      e.g. when integrating https://codereview.qt-project.org/c/qt/qtbase/+/449888, full log at https://testresults.qt.io/logs/qt/qtbase/6a25a0fd6567d42902eb6a35ea5ccb81f796ba94/LinuxopenSUSE_15_4x86_64LinuxopenSUSE_15_4x86_64GCCqtci-linux-openSUSE-15.4-x86_64-50-83e418Sccache_UseAddressSanitizer_UseConfigure_WarningsAreErrors/cbfa906f2c98fc3ef489740ff00657c64308070e/test_1680802586/log.txt.gz

      The integration ultimately fails due to a tst_qprocess failure.

      Attachments

        Issue Links

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

          Activity

            People

              thiago Thiago Macieira
              vhilshei Volker Hilsheimer
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes