forked from qt-creator/qt-creator
CMakeBuildSystem: Get rid of call to waitForStarted()
This is unneeded when followed by waitForFinished(). Change-Id: Ia30161da73ea877ba8973903a391100f29be8410 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -931,11 +931,8 @@ void CMakeBuildSystem::runCTest()
|
||||
process.setWorkingDirectory(workingDirectory);
|
||||
process.setCommand(cmd);
|
||||
process.start();
|
||||
|
||||
if (!process.waitForStarted(1000) || !process.waitForFinished()
|
||||
|| process.exitCode() || process.exitStatus() != QProcess::NormalExit) {
|
||||
if (!process.waitForFinished() || process.result() != ProcessResult::FinishedWithSuccess)
|
||||
return;
|
||||
}
|
||||
futureInterface.reportResult(process.readAllStandardOutput());
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user