diff options
author | Marc Mutz <marc.mutz@qt.io> | 2024-01-31 16:17:40 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2024-02-07 12:15:09 +0000 |
commit | d4bb448cddce63e0c6a84a86020fa59dd32b2293 (patch) | |
tree | 785b84d33f9478c307184d8d5dba62193dfe33b0 /src/corelib/compat/removed_api.cpp | |
parent | fb226262e8b371372fdc66b832b9eab24741f70d (diff) |
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>
Diffstat (limited to 'src/corelib/compat/removed_api.cpp')
0 files changed, 0 insertions, 0 deletions