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

QuickTest runs test suites in parallel, causing crashes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 6.5.0 Beta1
    • 6.2, 6.3
    • Testing: QuickTest
    • None
    • All
    • 47490648b1 (qt/qtdeclarative/dev)

    Description

      If a single qml file has multiple TestCase elements, all of which have when-properties that evaluate to true, we might end up in a situation where multiple TestCase elements run their test functions at the same time. I don't how this can happen, as my understanding is that the QML engine is single threaded.

      But it happens, and that's bad, as Qt Testlib, which Qt Quick Test uses for reporting, does not expect test functions to be executed in parallel.

      WIP patch at https://codereview.qt-project.org/c/qt/qtdeclarative/+/372593

      Attachments

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            vestbo Tor Arne Vestbø
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: