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

tst_QElapsedTimer::elapsed() auto-test fails in CI

    XMLWordPrintable

Details

    • 715468df40e4ce97da04f327b6e34d535ff9b97d (qt/qtbase/5.14) 423ddcb23295384cee4cc83b5d890790bf0d8b86 (qt/qtbase/5.12)

    Description

      E.g. in https://codereview.qt-project.org/184913

       ********* Start testing of tst_QElapsedTimer *********
       Config: Using QtTest library 5.8.1, Qt 5.8.1 (i386-little_endian-ilp32 shared (dynamic) release build; by MSVC 2013)
       PASS   : tst_QElapsedTimer::initTestCase()
       QDEBUG : tst_QElapsedTimer::statics() Clock type is 4
       QDEBUG : tst_QElapsedTimer::statics() Said clock is monotonic
       QDEBUG : tst_QElapsedTimer::statics() Current time is 1104347
       PASS   : tst_QElapsedTimer::statics()
       PASS   : tst_QElapsedTimer::validity()
       QDEBUG : tst_QElapsedTimer::basics() value1: 1104347 t1: (1104347)
       QDEBUG : tst_QElapsedTimer::basics() value2: 1104347 t1: (1104347) elapsed: 0 nsecs: 29333
       PASS   : tst_QElapsedTimer::basics()
       FAIL!  : tst_QElapsedTimer::elapsed() 'elapsed < 5*minResolution' returned FALSE. ()
       tst_qelapsedtimer.cpp(132) : failure location
       PASS   : tst_QElapsedTimer::cleanupTestCase()
       Totals: 5 passed, 1 failed, 0 skipped, 0 blacklisted, 274ms
       ********* Finished testing of tst_QElapsedTimer *********
      

      The re-run fails differently:

       ********* Start testing of tst_QElapsedTimer *********
       Config: Using QtTest library 5.8.1, Qt 5.8.1 (i386-little_endian-ilp32 shared (dynamic) release build; by MSVC 2013)
       PASS   : tst_QElapsedTimer::initTestCase()
       FAIL!  : tst_QElapsedTimer::elapsed() 't1.nsecsElapsed() - t1.elapsed() * 1000000 < 1000000' returned FALSE. ()
       tst_qelapsedtimer.cpp(122) : failure location
       PASS   : tst_QElapsedTimer::cleanupTestCase()
       Totals: 2 passed, 1 failed, 0 skipped, 0 blacklisted, 208ms
       ********* Finished testing of tst_QElapsedTimer *********
       

      Attachments

        Issue Links

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

          Activity

            People

              vhilshei Volker Hilsheimer
              mmutz Marc Mutz
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: