Details
-
User Story
-
Resolution: Unresolved
-
P2: Important
-
None
-
None
Description
Currently, the description expressin is evaluated for each QVERIFY2(), regardless of whether it succeeds or not, even though the result is only needed when the check fails. We have thousands of test cases, and the string formatting eats a significant amount of the runtime compared to the (typically trivial) cost of the check.
Please change QVERIFY2 to only evaluate the expressions on failure (incl. XPASS).
Attachments
Issue Links
- relates to
-
QTBUG-81473 Add QString overloads for the message/description argument of QVERIFY2 and friends
- Open