summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Mutz <[email protected]>2025-06-11 20:09:23 +0200
committerMarc Mutz <[email protected]>2025-06-12 00:34:17 +0200
commit270b2194106224c0dfb2221bcd85676a747b4f13 (patch)
treee7aae71bf82a3c9c7454f80496c0dea0717a6e97
parentf1e1a933a610a71d93d888cc911187b80ea02e9c (diff)
QTRY_IMPL: revert an incorrect change to a code comment
The comment in the QTRY_IMPL macro definition pertains to the following using namespace std::chrono_literals, which has nothing to do with the default timeout of QTRY_ macros, because that is determined somewhere else. Further, "5 seconds" is not a valid chrono literal, as "5s" was. Partially reverts 55f163382d36ddf908fc2884f2020a1b92340c10. Found in API-review. Pick-to: 6.10 Change-Id: Ic1242436bf87d7067e3c5240eb2687505e24800f Reviewed-by: Ahmad Samir <[email protected]>
-rw-r--r--src/testlib/qtestcase.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testlib/qtestcase.h b/src/testlib/qtestcase.h
index 54a766a0cff..c924f788106 100644
--- a/src/testlib/qtestcase.h
+++ b/src/testlib/qtestcase.h
@@ -193,7 +193,7 @@ inline void useVerifyThrowsException() {}
#define QTRY_IMPL(expr, timeoutAsGiven)\
const auto qt_test_timeoutAsMs = [&] { \
- /* make 5 seconds (by default) work without user action: */ \
+ /* make 5s work w/o user action: */ \
using namespace std::chrono_literals; \
return std::chrono::milliseconds{timeoutAsGiven}; \
}(); \