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

tst_qgraphicsitem::sorting fails if testcase is executed individually

    XMLWordPrintable

Details

    • Linux/X11
    • dff9fa2ee1 (qt/qtbase/dev)

    Description

      Running the testcase individually causes a failure (always, i.e. non-flaky) after a few seconds delay waiting for the window to be activated:

      $ tests/auto/widgets/graphicsview/qgraphicsitem/tst_qgraphicsitem sorting
      ********* Start testing of tst_QGraphicsItem *********
      Config: Using QtTest library 6.5.0, Qt 6.5.0 (x86_64-little_endian-lp64 shared (dynamic) debug build; by GCC 12.1.1 20220629 [revision 7811663964aa7e31c3939b859bbfa2e16919639f]), opensuse-tumbleweed 20220719
      PASS   : tst_QGraphicsItem::initTestCase()
      FAIL!  : tst_QGraphicsItem::sorting(NoIndex) 'QTest::qWaitForWindowActive(&view)' returned FALSE. ()
         Loc: [/home/qtjimis/dist/src/qt/qtbase/tests/auto/widgets/graphicsview/qgraphicsitem/tst_qgraphicsitem.cpp(8221)]
      FAIL!  : tst_QGraphicsItem::sorting(BspTreeIndex) 'QTest::qWaitForWindowActive(&view)' returned FALSE. ()
         Loc: [/home/qtjimis/dist/src/qt/qtbase/tests/auto/widgets/graphicsview/qgraphicsitem/tst_qgraphicsitem.cpp(8221)]
      PASS   : tst_QGraphicsItem::cleanupTestCase()
      Totals: 2 passed, 2 failed, 0 skipped, 0 blacklisted, 10776ms
      ********* Finished testing of tst_QGraphicsItem *********
      

      Running it after the previous testcase is a PASS:

      $ tests/auto/widgets/graphicsview/qgraphicsitem/tst_qgraphicsitem moveLineItem sorting
      ********* Start testing of tst_QGraphicsItem *********
      Config: Using QtTest library 6.5.0, Qt 6.5.0 (x86_64-little_endian-lp64 shared (dynamic) debug build; by GCC 12.1.1 20220629 [revision 7811663964aa7e31c3939b859bbfa2e16919639f]), opensuse-tumbleweed 20220719
      PASS   : tst_QGraphicsItem::initTestCase()
      PASS   : tst_QGraphicsItem::moveLineItem()
      PASS   : tst_QGraphicsItem::sorting(NoIndex)
      PASS   : tst_QGraphicsItem::sorting(BspTreeIndex)
      PASS   : tst_QGraphicsItem::cleanupTestCase()
      Totals: 5 passed, 0 failed, 0 skipped, 0 blacklisted, 893ms
      ********* Finished testing of tst_QGraphicsItem *********
      

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-105221
          # Subject Branch Project Status CR V

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes