summaryrefslogtreecommitdiffstats
path: root/Source/CTest
diff options
context:
space:
mode:
Diffstat (limited to 'Source/CTest')
-rw-r--r--Source/CTest/cmCTestRunTest.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestRunTest.cxx b/Source/CTest/cmCTestRunTest.cxx
index 24d1d9f..3e9156c 100644
--- a/Source/CTest/cmCTestRunTest.cxx
+++ b/Source/CTest/cmCTestRunTest.cxx
@@ -442,6 +442,8 @@ void cmCTestRunTest::ComputeArguments()
cmCTestMemCheckHandler * handler = static_cast<cmCTestMemCheckHandler*>
(this->TestHandler);
this->ActualCommand = handler->MemoryTester.c_str();
+ this->TestProperties->Args[1] = this->TestHandler->FindTheExecutable(
+ this->TestProperties->Args[1].c_str());
}
else
{
@@ -459,7 +461,7 @@ void cmCTestRunTest::ComputeArguments()
i != this->Arguments.end(); ++i)
{
this->TestCommand += " ";
- this->TestCommand += cmSystemTools::EscapeSpaces(j->c_str());
+ this->TestCommand += cmSystemTools::EscapeSpaces(i->c_str());
}
for(;j != this->TestProperties->Args.end(); ++j)