tests: fix flaky QSoundEffect::getPlaybackEngine
The sink's suspended state is reached asynchronously, so the state
comparison right after getEngineFor() returns could race the state
transition. Use QTRY_COMPARE instead of QCOMPARE to give the event
loop a chance to process the pending state change.
Pick-to: 6.12
Change-Id: Ie1d8c453aa70c77b06c6086548a3a87b8f0206b3
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
| commit | 8af725ab6d9c760d2ac2b41b42b1b4c9ba64a696 |
| parent | 2089fbd97d68ad4b513cc65d4ae9a9de950fd81e |
| author | Tim Blechmann <tim.blechmann@qt.io> |
| committer | Tim Blechmann <tim.blechmann@qt.io> |
| commit time | Wed, 16 Sep 2026 14:33:10 +0000 |