Details
-
Task
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
7.0 (Next Major Release)
-
None
Description
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.
Attachments
Issue Links
- resulted from
-
QTBUG-81979 Allow configuring a global QTestLib timeout
-
- In Progress
-
Gerrit Reviews
For Gerrit Dashboard: QTBUG-138160 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
648330,20 | Make QTest::defaultTryTimeout public | dev | qt/qtbase | Status: NEW | 0 | 0 |