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

tst_qwebengineview::changeLocale is flaky

    XMLWordPrintable

Details

    • 78d8985c6bdb7bf9d04fa5e6936aadab5174c6d2

    Description

      On my machine, when I run ./tst_qwebengineview changeLocale in a loop, it often fails within the first 5-20 iterations.
      I get the error message

      ********* Start testing of tst_QWebEngineView *********
      Config: Using QtTest library 5.9.0, Qt 5.9.0 (x86_64-little_endian-lp64 shared (dynamic) debug build; by GCC 4.8.4)
      PASS   : tst_QWebEngineView::initTestCase()
      FAIL!  : tst_QWebEngineView::changeLocale() 'spyTitleChangedDE.wait()' returned FALSE. ()
         Loc: [.../qtwebengine/tests/auto/widgets/qwebengineview/tst_qwebengineview.cpp(857)]
      PASS   : tst_QWebEngineView::cleanupTestCase()
      

      Looking into QSignalSpy::wait, I see that it fails when the signal it waits for is emitted before wait is called (race condition).

      Attachments

        Issue Links

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

          Activity

            People

              pvarga Peter Varga
              viengelm Viktor Engelmann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes