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

QSignalSpy::wait() does not always report success when a signal has been emitted

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.14.1
    • Fix Version/s: None
    • Component/s: Testing: qtestlib
    • Labels:
      None
    • Environment:
      macOS 10.15

      Description

      When there are multiple QSignalSpys operating on the same object, then it seems that the second QSignalSpy that has wait() called on it does not return true even though the signal itself has been emitted.

      Attached is an example where the released spy is failing even when the signal is clearly emitted. This is using QtQuickControls2 as a means of reproducing because it is not consistently happening all the time (since other tests are working fine with a similar approach).

        Attachments

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

          Activity

            People

            Assignee:
            macadder Jason McDonald
            Reporter:
            andysh Andy Shaw
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes