forked from qt-creator/qt-creator
Utils: Remove CommandLine argument from QtcProcess::run{,Blocking}
Makes run() more similar to what start() looks like. Also add some asserts to make sure run() and related functions are only called on SyncronousProcesses, as these are currently the only ones where this works. Change-Id: Idee6076c3f40a484db5c17f5bb348698cc83d220 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -54,8 +54,9 @@ static QString runExecutable(const Utils::CommandLine &commandLine,
|
||||
Environment env = Environment::systemEnvironment();
|
||||
Environment::setupEnglishOutput(&env);
|
||||
cpp.setEnvironment(env);
|
||||
cpp.setCommand(commandLine);
|
||||
|
||||
cpp.runBlocking(commandLine);
|
||||
cpp.runBlocking();
|
||||
if (cpp.result() != QtcProcess::Finished
|
||||
&& (failSilently == FailSilently::No
|
||||
|| cpp.result() != QtcProcess::FinishedError)) {
|
||||
|
||||
Reference in New Issue
Block a user