diff options
author | Kari Oikarinen <kari.oikarinen@qt.io> | 2018-02-28 15:06:10 +0200 |
---|---|---|
committer | Kari Oikarinen <kari.oikarinen@qt.io> | 2018-03-01 14:42:21 +0000 |
commit | 306e8511602ac3c23778d6aef994269d17d3145c (patch) | |
tree | 100d240d40999ce5f92263d77cfc82119e4e9722 /tests/auto | |
parent | 1df2974e0c30c34cf3c458c9c89047fe9685b84d (diff) | |
download | qtmultimedia-306e8511602ac3c23778d6aef994269d17d3145c.tar.gz |
Wrap QTest::qWaitForWindowExposed() with QVERIFYv5.11.0-beta2
The function is marked Q_REQUIRED_RESULT, so not handling the return value is a
compiler warning.
Change-Id: I167950e8f579446516c15f54388addf759afa69d
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/unit/qpaintervideosurface/tst_qpaintervideosurface.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/auto/unit/qpaintervideosurface/tst_qpaintervideosurface.cpp b/tests/auto/unit/qpaintervideosurface/tst_qpaintervideosurface.cpp index c2f18d2a4..fd0917943 100644 --- a/tests/auto/unit/qpaintervideosurface/tst_qpaintervideosurface.cpp +++ b/tests/auto/unit/qpaintervideosurface/tst_qpaintervideosurface.cpp @@ -563,7 +563,7 @@ void tst_QPainterVideoSurface::shaderType() } widget.show(); - QTest::qWaitForWindowExposed(&widget); + QVERIFY(QTest::qWaitForWindowExposed(&widget)); widget.makeCurrent(); QCOMPARE(surface.shaderType(), QPainterVideoSurface::NoShaders); @@ -660,7 +660,7 @@ void tst_QPainterVideoSurface::shaderTypeStarted() } widget.show(); - QTest::qWaitForWindowExposed(&widget); + QVERIFY(QTest::qWaitForWindowExposed(&widget)); widget.makeCurrent(); QPainterVideoSurface surface; @@ -910,7 +910,7 @@ void tst_QPainterVideoSurface::shaderSupportedFormat() } widget.show(); - QTest::qWaitForWindowExposed(&widget); + QVERIFY(QTest::qWaitForWindowExposed(&widget)); widget.makeCurrent(); QPainterVideoSurface surface; @@ -1032,7 +1032,7 @@ void tst_QPainterVideoSurface::shaderPresent() } widget.show(); - QTest::qWaitForWindowExposed(&widget); + QVERIFY(QTest::qWaitForWindowExposed(&widget)); widget.makeCurrent(); QPainterVideoSurface surface; @@ -1168,7 +1168,7 @@ void tst_QPainterVideoSurface::shaderPresentOpaqueFrame() } widget.show(); - QTest::qWaitForWindowExposed(&widget); + QVERIFY(QTest::qWaitForWindowExposed(&widget)); widget.makeCurrent(); QPainterVideoSurface surface; @@ -1222,7 +1222,7 @@ void tst_QPainterVideoSurface::shaderPresentGLFrame() } widget.show(); - QTest::qWaitForWindowExposed(&widget); + QVERIFY(QTest::qWaitForWindowExposed(&widget)); widget.makeCurrent(); QPainterVideoSurface surface; |