From 306e8511602ac3c23778d6aef994269d17d3145c Mon Sep 17 00:00:00 2001 From: Kari Oikarinen Date: Wed, 28 Feb 2018 15:06:10 +0200 Subject: Wrap QTest::qWaitForWindowExposed() with QVERIFY 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 --- .../unit/qpaintervideosurface/tst_qpaintervideosurface.cpp | 12 ++++++------ 1 file 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; -- cgit v1.2.3