tst_qwindowcapturebackend: Replace waitForFrame with consumeFirstFrame
The behavior of waitForFrame works poorly when integrating tests that
check for null-frames at the end of a stream, because it clears all
collected frames up until that point.
Most commonly it is used to wait for the first frame of a stream, so
instead we replace it with 'consumeFirstFrame()' which only returns the
first frame, if we ever got one.
Pick-to: 6.12
Change-Id: I40d12675fe61f6663c66e5ef7131128c8d079645
Reviewed-by: Tim Blechmann <tim.blechmann@qt.io>
| commit | 46c66c8b90b00568a6bacfece2302f6f4fc26d9c |
| parent | a0fa50e499f89d491bcc13a53517c81938bb7b35 |
| author | Nils Petter Skålerud <nils.petter.skalerud@qt.io> |
| committer | Nils Petter Skålerud <nils.petter.skalerud@qt.io> |
| commit time | Tue, 29 Sep 2026 11:04:51 +0000 |
- M tests/auto/integration/qwindowcapturebackend/fixture.cpp
- M tests/auto/integration/qwindowcapturebackend/fixture.h
- M tests/auto/integration/qwindowcapturebackend/grabber.cpp
- M tests/auto/integration/qwindowcapturebackend/grabber.h
- M tests/auto/integration/qwindowcapturebackend/tst_qwindowcapturebackend.cpp