forked from qt-creator/qt-creator
Remove unneeded terminating of failed process
Since we employ QtcProcess, the reaping of possibly running process is done internally by QtcProcess already. Change-Id: Ie65314a4aecf5bb1808b0f2c46a50503d82fd6fb Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -934,18 +934,10 @@ void CMakeBuildSystem::runCTest()
|
||||
process.setCommand(cmd);
|
||||
process.start();
|
||||
|
||||
if (!process.waitForStarted(1000) || !process.waitForFinished()) {
|
||||
if (process.state() == QProcess::NotRunning)
|
||||
return;
|
||||
process.terminate();
|
||||
if (process.waitForFinished(1000))
|
||||
return;
|
||||
process.kill();
|
||||
process.waitForFinished(1000);
|
||||
if (!process.waitForStarted(1000) || !process.waitForFinished()
|
||||
|| process.exitCode() || process.exitStatus() != QProcess::NormalExit) {
|
||||
return;
|
||||
}
|
||||
if (process.exitCode() || process.exitStatus() != QProcess::NormalExit)
|
||||
return;
|
||||
futureInterface.reportResult(process.readAllStandardOutput());
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user