summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2019-02-06 09:32:36 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2019-02-06 20:40:27 +0000
commitee36ee7f7352b08da15d4e4875e93256e4cdc245 (patch)
tree92bf86b30d3451478e5d5be18253ac1e4ccf1c92
parentaa40680f66542c29742c8775982a549b1717e357 (diff)
downloadqtquickcontrols-ee36ee7f7352b08da15d4e4875e93256e4cdc245.tar.gz
Tests: Fix warnings about ignored return valuev5.13.0-alpha1
Check return value of Test::qWaitForWindowExposed() Change-Id: I21dd077d2610b6a374e2e6ad943ee39e0b6d4e79 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
-rw-r--r--tests/auto/dialogs/tst_dialogs.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/dialogs/tst_dialogs.cpp b/tests/auto/dialogs/tst_dialogs.cpp
index 8303ff83..58f23534 100644
--- a/tests/auto/dialogs/tst_dialogs.cpp
+++ b/tests/auto/dialogs/tst_dialogs.cpp
@@ -159,7 +159,7 @@ void tst_dialogs::dialogButtonHandler()
root->setProperty("mustBlock", mustBlock);
QQuickWindow *window = root->findChild<QQuickWindow*>();
- QTest::qWaitForWindowExposed(window);
+ QVERIFY(QTest::qWaitForWindowExposed(window));
/* Hack to find the created buttons: since they are created by a
* QQuickRepeater, they don't appear on the hierarchy tree; therefore, we
@@ -242,7 +242,7 @@ void tst_dialogs::dialogKeyHandler()
root->setProperty("mustBlock", mustBlock);
QQuickWindow *window = root->findChild<QQuickWindow*>();
- QTest::qWaitForWindowExposed(window);
+ QVERIFY(QTest::qWaitForWindowExposed(window));
QTest::keyClick(window, Qt::Key(key));
QTRY_VERIFY(root->property("handlerWasCalled").toBool());