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

Reduce default QTRY_* timeout

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 7.0 (Next Major Release)
    • Testing: qtestlib
    • None
    • 5
    • 9b9388237 (dev)

      As explained in QTBUG-81979 and its patches (in particular, this comment from the maintainer), 5 seconds (doubled by Qt Test, so effectively 10 seconds) is too long. For most tests, 1 second is plenty and would save developers a lot of time, especially for tests involving many QTRY_* checks where it's not clear which test is failing if the test was killed before the check finished (to avoid waiting the full 10 seconds).

      Changing this in Qt 6 would break a lot of users' tests, so we should do it in Qt 7. After https://codereview.qt-project.org/c/qt/qtbase/+/648330, they can also increase the timeout with a one-liner for each test case if it's then too short.

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

            macadder Jason McDonald
            mitch_curtis Mitch Curtis
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes