aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/testlib/TestCase.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/testlib/TestCase.qml')
-rw-r--r--src/imports/testlib/TestCase.qml5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/imports/testlib/TestCase.qml b/src/imports/testlib/TestCase.qml
index 5b853cbad5..a1ab85c4cb 100644
--- a/src/imports/testlib/TestCase.qml
+++ b/src/imports/testlib/TestCase.qml
@@ -486,6 +486,7 @@ Item {
if (!qtest_results.skipped) {
qtest_results.functionType = TestResult.Func
qtest_runInternal(prop, arg)
+ qtest_results.finishTestData()
qtest_results.functionType = TestResult.CleanupFunc
qtest_runInternal("cleanup")
}
@@ -510,7 +511,9 @@ Item {
else
qtest_results.startBenchmark(TestResult.RunOnce, qtest_results.dataTag)
while (!qtest_results.isBenchmarkDone()) {
- if (!qtest_runInternal(prop, arg))
+ var success = qtest_runInternal(prop, arg)
+ qtest_results.finishTestData()
+ if (!success)
break
qtest_results.nextBenchmark()
}