summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKari Oikarinen <kari.oikarinen@qt.io>2018-02-28 15:06:10 +0200
committerKari Oikarinen <kari.oikarinen@qt.io>2018-03-01 14:42:21 +0000
commit306e8511602ac3c23778d6aef994269d17d3145c (patch)
tree100d240d40999ce5f92263d77cfc82119e4e9722
parent1df2974e0c30c34cf3c458c9c89047fe9685b84d (diff)
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>
-rw-r--r--tests/auto/unit/qpaintervideosurface/tst_qpaintervideosurface.cpp12
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 c2f18d2a..fd091794 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;