aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2021-04-11 11:14:01 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-04-13 21:16:00 +0000
commit6f241b9228397ff1c2e5dab5dfd5b8fb212ffe06 (patch)
treec954b8b0fafc4a463817d190ba38afc45328b485 /tests
parent3db466ff04d872e9219e6b98d5a74ee0ab5d9698 (diff)
Verify result of test
Fixes compiler warning, and makes that test actually test something. Change-Id: I266b538dea36bef87db52e1e18c1d606015b03c9 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io> (cherry picked from commit bd1e0844aef407924863f8368b4f475937290ee5) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qml/qqmldelegatemodel/tst_qqmldelegatemodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qml/qqmldelegatemodel/tst_qqmldelegatemodel.cpp b/tests/auto/qml/qqmldelegatemodel/tst_qqmldelegatemodel.cpp
index 1a772b8a1e..0980d8b8ca 100644
--- a/tests/auto/qml/qqmldelegatemodel/tst_qqmldelegatemodel.cpp
+++ b/tests/auto/qml/qqmldelegatemodel/tst_qqmldelegatemodel.cpp
@@ -162,7 +162,7 @@ void tst_QQmlDelegateModel::filterOnGroup_removeWhenCompleted()
QVERIFY(root);
QQmlDelegateModel *model = root->findChild<QQmlDelegateModel*>();
QVERIFY(model);
- QTest::qWaitFor([=]{ return model->count() == 2; } );
+ QVERIFY(QTest::qWaitFor([=]{ return model->count() == 2; }));
}
QTEST_MAIN(tst_QQmlDelegateModel)