Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-20439

Test run crashes on long qWait() timeout

    XMLWordPrintable

Details

    • a1a78c4c69257511efbcd322b87f9c9f448b4346 f129ed9d961559b489919445198727d4fd6a5d36

    Description

      Test runs or debugs (Ctrl-R or F5) fine however if I ran it in "Test Results" pane strange thing happen:

      • one CPU core loaded up to 100%
      • test crashes after few minutes on following line
         
        QTest::qWait(12 * 60 * 1000);   // Wait for 12 min

      Running test in run or debug mode passes fine with no errors or crashes with CPU load near to zero. To fix the issue I set

       qputenv("QTEST_FUNCTION_TIMEOUT", "1000000");

      in the test constructor. Tools -> Options -> Testing -> General : Timeout = 1000 s does  not work for some reason. However this did not fix CPU load.

      Attachments

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

        Activity

          People

            cstenger Christian Stenger
            jirauser39314 user-45b5b (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes