diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2021-03-17 22:10:25 +0100 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2021-03-18 08:24:38 +0100 |
commit | 80ee53c07c425f3d469dab5824572031fde6405e (patch) | |
tree | 898588461b3faf3f101d80a5f83bba7349b4d2eb /tests/auto/quick/qquickitem | |
parent | 955181ebc554240cd8fa792a125369aeb56a2eb0 (diff) |
Don't discard return values from no-discard functions
The tests are very likely to fail if window exposure fails, so verify
that it doesn't.
Pick-to: 6.1
Change-Id: I484d10e6bf8fdf5199bef070198f5405ab8f249b
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'tests/auto/quick/qquickitem')
-rw-r--r-- | tests/auto/quick/qquickitem/tst_qquickitem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/quick/qquickitem/tst_qquickitem.cpp b/tests/auto/quick/qquickitem/tst_qquickitem.cpp index d7c9c0df2a..0bdda15187 100644 --- a/tests/auto/quick/qquickitem/tst_qquickitem.cpp +++ b/tests/auto/quick/qquickitem/tst_qquickitem.cpp @@ -1600,7 +1600,7 @@ void tst_qquickitem::hoverEvent() QQuickWindow *window = new QQuickWindow(); window->resize(200, 200); window->show(); - QTest::qWaitForWindowExposed(window); + QVERIFY(QTest::qWaitForWindowExposed(window)); #if QT_CONFIG(cursor) // Get the cursor out of the way. QCursor::setPos(window->geometry().topRight() + QPoint(100, 100)); #endif @@ -1645,7 +1645,7 @@ void tst_qquickitem::hoverEventInParent() QQuickWindow window; window.resize(200, 200); window.show(); - QTest::qWaitForWindowExposed(&window); + QVERIFY(QTest::qWaitForWindowExposed(&window)); #if QT_CONFIG(cursor) // Get the cursor out of the way. QCursor::setPos(window.geometry().topRight() + QPoint(100, 100)); #endif |