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

QTRY timeouts not considered after an unexpected pass with QEXPECT_FAIL

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 6.2
    • Testing: qtestlib
    • None
    • All

    Description

      It seems that if QEXPECT_FAIL() is followed by an unexpected pass, the later QTRY* comparisons' timeout values are not considered.

      As an example:

      //  This seems fine
      //	QEXPECT_FAIL("","ex",Continue);
      //	QCOMPARE(1,2); // false, XFAIL
      //      QTRY_COMPARE_WITH_TIMEOUT(1,2,5000); // waits as expected
      
      // This seems surprising
       	QEXPECT_FAIL("","ex",Continue);
       	QCOMPARE(2,2); // true, an unexpected pass
              QTRY_COMPARE_WITH_TIMEOUT(1,2,5000); // <- returns immediately, does not wait
      

      Attachments

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

        Activity

          People

            macadder Jason McDonald
            vuokko Juha Vuolle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes