AutoTest: Inform user when tests did crash

If a test crashes for whatever reason one did not get any information
about this so far.
Add an explicit fatal for such cases.

Change-Id: Ica2aec4b30f38d29acfe170526f4468aa6577887
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
Christian Stenger
2016-04-14 17:34:00 +02:00
parent bd406e3cd0
commit 7c0e76aee4

View File

@@ -220,6 +220,10 @@ static void performTestRun(QFutureInterface<TestResultPtr> &futureInterface,
eventLoop.processEvents();
}
}
if (testProcess.exitStatus() == QProcess::CrashExit) {
futureInterface.reportResult(TestResultPtr(new FaultyTestResult(Result::MessageFatal,
QString::fromLatin1("Test for project \"%1\" crashed.").arg(testConfiguration->displayName()))));
}
if (canceledByTimeout) {
if (testProcess.state() != QProcess::NotRunning) {