Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-101180

As a user of QTestLib, I'm concerned about the runtime effects of the unconditional message formatting in QVERIFY2

XMLWordPrintable

    • Icon: User Story User Story
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • None
    • Testing: qtestlib

      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).

       

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            cnn Qt Core & Network
            mmutz Marc Mutz
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes