qt6-bb10/tests/auto/testlib
Marc Mutz d4bb448cdd QTest: allow passing chrono literal as QTRY_ timeout
By wrapping the use of the timeout value in QTRY_IMPL in a lambda that
feeds the user input through the std::chrono::milliseconds constructor
with std::chrono_literals in-scope, the macros continue to work with
raw integral values as well as chrono literals not finer than
millisecond granularity.

Port all higher-level macros to pass a chrono literal and port some
uses in tst_selftests.

[ChangeLog][QtTest] The QTRY_*_WITH_TIMEOUT macros now also accept
chrono literals (was: int milliseconds).

Fixes: QTBUG-121746
Change-Id: Ib38406fc005a0a2c4ae3fd009760f73ad8bed355
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2024-02-07 12:15:09 +00:00
..
initmain Change license for tests files 2024-02-04 09:56:42 +01:00
outformat Change license for tests files 2024-02-04 09:56:42 +01:00
qabstractitemmodeltester Change license for tests files 2024-02-04 09:56:42 +01:00
qsignalspy Change license for tests files 2024-02-04 09:56:42 +01:00
selftests QTest: allow passing chrono literal as QTRY_ timeout 2024-02-07 12:15:09 +00:00
tostring Change license for tests files 2024-02-04 09:56:42 +01:00
CMakeLists.txt Move the formatting of <chrono> durations to QDebug & QtTest 2023-05-06 17:54:23 +00:00