From b29f6c479848391c137e927189b523e3c8f7f548 Mon Sep 17 00:00:00 2001 From: Dominik Holland Date: Mon, 23 Nov 2020 15:47:19 +0100 Subject: tst_qiviabstractfeature: Fix return value of autotest The test wasn't failing, if only one of the two classes in their had a failing autotest. Change-Id: Ia1c5d92628373ed516524bc9a29a76d45185e995 Reviewed-by: Robert Griebl --- tests/auto/core/qiviabstractfeature/tst_qiviabstractfeature.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/auto/core/qiviabstractfeature/tst_qiviabstractfeature.cpp b/tests/auto/core/qiviabstractfeature/tst_qiviabstractfeature.cpp index 9e24e0e..be3c75b 100644 --- a/tests/auto/core/qiviabstractfeature/tst_qiviabstractfeature.cpp +++ b/tests/auto/core/qiviabstractfeature/tst_qiviabstractfeature.cpp @@ -586,10 +586,10 @@ int main(int argc, char *argv[]) tst_QIviAbstractFeature f; tst_QIviAbstractFeatureListModel lM; QTEST_SET_MAIN_SOURCE_PATH - bool feature = QTest::qExec(&f, argc, argv); - bool featureModel = QTest::qExec(&lM, argc, argv); + int featureErrors = QTest::qExec(&f, argc, argv); + int featureModelErrors = QTest::qExec(&lM, argc, argv); - return feature && featureModel; + return featureErrors + featureModelErrors; } #include "tst_qiviabstractfeature.moc" -- cgit v1.2.1