summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@qt.io>2020-11-23 15:47:19 +0100
committerDominik Holland <dominik.holland@qt.io>2020-12-02 10:46:38 +0100
commitb29f6c479848391c137e927189b523e3c8f7f548 (patch)
tree252c05fbb5f8ea2ebf26a1e89ffc511e4bb0befc /tests
parent903c21ea24692deb14759c2e7b59f5892622d5e3 (diff)
downloadqtivi-b29f6c479848391c137e927189b523e3c8f7f548.tar.gz
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 <robert.griebl@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/core/qiviabstractfeature/tst_qiviabstractfeature.cpp6
1 files changed, 3 insertions, 3 deletions
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"