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

QTest::QWait Crashes when called multiple times within a loop

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.6.3
    • None
    • Linux/Other display system

    Description

      I have created a Unit test that crashes consistently.

      While debugging the test, I  found that calling multiple QTest::qWait() within a for() loop appears to cause the crash.

      I have provided source code for a  QTest-based application that demonstrates the problem.   You can find the source code (.cpp, .hpp, and .pro) in the attached .tar file. 

      The test calls QTest:qWait() six times within a for() loop; the for() loop is set to execute fifteen times.  The test consistently crashes during the eighth iteration of the for loop.

      I want to understand what I am doing wrong, or report a bug.

       

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            matthew_cooke Matthew Cooke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes