diff options
author | Dominik Holland <dominik.holland@qt.io> | 2020-11-23 15:47:19 +0100 |
---|---|---|
committer | Dominik Holland <dominik.holland@qt.io> | 2020-12-02 10:46:38 +0100 |
commit | b29f6c479848391c137e927189b523e3c8f7f548 (patch) | |
tree | 252c05fbb5f8ea2ebf26a1e89ffc511e4bb0befc /tests/auto/core | |
parent | 903c21ea24692deb14759c2e7b59f5892622d5e3 (diff) | |
download | qtivi-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/auto/core')
-rw-r--r-- | tests/auto/core/qiviabstractfeature/tst_qiviabstractfeature.cpp | 6 |
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" |