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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Invalid
    • Affects Version/s: 5.6.3
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
    • Platform/s:
      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

            Assignee:
            thiago Thiago Macieira
            Reporter:
            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