forked from qt-creator/qt-creator
AutoTest: Delegate reporting crashes to output reader
Let the output reader report crashes of the test instead of just reporting crashes globally. This allows to reflect the crash also inside summary items to avoid having tests displayed as passed if no fail happened until the crash. Task-number: QTCREATORBUG-19565 Change-Id: Idd9fe28f7486cbb31b1aa6556530718a2278722f Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -253,6 +253,7 @@ static void performTestRun(QFutureInterface<TestResultPtr> &futureInterface,
|
||||
+ rcInfo(testConfiguration))));
|
||||
}
|
||||
if (testProcess.exitStatus() == QProcess::CrashExit) {
|
||||
outputReader->reportCrash();
|
||||
futureInterface.reportResult(TestResultPtr(new FaultyTestResult(Result::MessageFatal,
|
||||
TestRunner::tr("Test for project \"%1\" crashed.")
|
||||
.arg(testConfiguration->displayName()) + processInformation(testProcess)
|
||||
|
||||
Reference in New Issue
Block a user