forked from qt-creator/qt-creator
ProjectExplorer: Use Utils::CommandLine in ProjectExplorer::Runnable
Change-Id: Id965f1f9047dcbc3ea5c9ddaa550d12668cf8ae6 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -500,7 +500,7 @@ void ValgrindMemcheckParserTest::testRealValgrind()
|
||||
qDebug() << "running exe:" << executable << " HINT: set VALGRIND_TEST_BIN to change this";
|
||||
|
||||
ProjectExplorer::Runnable debuggee;
|
||||
debuggee.executable = FilePath::fromString(executable);
|
||||
debuggee.command.setExecutable(FilePath::fromString(executable));
|
||||
debuggee.environment = sysEnv;
|
||||
ValgrindRunner runner;
|
||||
runner.setValgrindCommand({"valgrind", {}});
|
||||
@@ -537,9 +537,9 @@ void ValgrindMemcheckParserTest::testValgrindStartError()
|
||||
QFETCH(QString, debuggeeArgs);
|
||||
|
||||
ProjectExplorer::Runnable debuggeeExecutable;
|
||||
debuggeeExecutable.executable = FilePath::fromString(debuggee);
|
||||
debuggeeExecutable.command.setExecutable(FilePath::fromString(debuggee));
|
||||
debuggeeExecutable.command.setArguments(debuggeeArgs);
|
||||
debuggeeExecutable.environment = Utils::Environment::systemEnvironment();
|
||||
debuggeeExecutable.commandLineArguments = debuggeeArgs;
|
||||
|
||||
ValgrindRunner runner;
|
||||
runner.setValgrindCommand({valgrindExe, valgrindArgs});
|
||||
|
||||
Reference in New Issue
Block a user