diff options
author | Jarek Kobus <[email protected]> | 2024-05-16 14:07:59 +0200 |
---|---|---|
committer | Jarek Kobus <[email protected]> | 2024-05-22 09:13:41 +0000 |
commit | 982ad2424352f07877fb0a0af63df3790ebe165d (patch) | |
tree | d6114a48b392e4399526aea78e0fb9637a244662 /src/plugins/valgrind/valgrindtestrunnertest.cpp | |
parent | d857af4cec9d1e3651f6c4759066ae953cd730c0 (diff) |
CommandLine: Reuse new c'tor
Change-Id: Id154881b4f5d8c488e5c1f5e0f843d36bf838759
Reviewed-by: Orgad Shaneh <[email protected]>
Reviewed-by: <[email protected]>
Diffstat (limited to 'src/plugins/valgrind/valgrindtestrunnertest.cpp')
-rw-r--r-- | src/plugins/valgrind/valgrindtestrunnertest.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/plugins/valgrind/valgrindtestrunnertest.cpp b/src/plugins/valgrind/valgrindtestrunnertest.cpp index 7d53efca33d..863265f8d04 100644 --- a/src/plugins/valgrind/valgrindtestrunnertest.cpp +++ b/src/plugins/valgrind/valgrindtestrunnertest.cpp @@ -93,11 +93,8 @@ QString ValgrindTestRunnerTest::runTestBinary(const QString &binary, const QStri debuggee.command.setExecutable(Utils::FilePath::fromString(binPath)); debuggee.environment = Utils::Environment::systemEnvironment(); - CommandLine valgrind{"valgrind", {"--num-callers=50", "--track-origins=yes"}}; - valgrind.addArgs(vArgs); - m_runner->setLocalServerAddress(QHostAddress::LocalHost); - m_runner->setValgrindCommand(valgrind); + m_runner->setValgrindCommand({"valgrind", {"--num-callers=50", "--track-origins=yes", vArgs}}); m_runner->setDebuggee(debuggee); m_runner->runBlocking(); return binPath; |