Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-63855 Tasks and issues related to flaky tests
  3. QTBUG-63992

cleanup tests [qtbase]: usages of QTest::qWait(int ms)

XMLWordPrintable

    • Icon: Technical task Technical task
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • Testing: qtestlib
    • None

      This API (unconditional wait) enables people to write bad and flakey tests. Should this API be eventually deprecated? Maybe there are valid use cases for it? Need to look at the test first. Maybe some other primitives should be build on top of https://codereview.qt-project.org/#/c/205012/ instead?

      Counting with grep in qtbase at 40fe5d43fdc6a95332d19de3e716aab5040dee19 :

      qtbase/tests/auto$ grep -r "QTest::qWait(" * | wc -l
      1118 <------- !!!!!
      

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

            Unassigned Unassigned
            paeglis Gatis Paeglis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: