summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestMemCheckHandler.cxx
diff options
context:
space:
mode:
authorZach Mullen <zach.mullen@kitware.com>2009-08-28 19:08:03 (GMT)
committerZach Mullen <zach.mullen@kitware.com>2009-08-28 19:08:03 (GMT)
commitb0b5ffcf5caf85cc47ec6a38e3f3e801f8c73bb0 (patch)
tree9e883593bf4ae6fb0878c56f77e4d88ec09a1927 /Source/CTest/cmCTestMemCheckHandler.cxx
parent996bb51a1d95645cf2274932be19e6a8a81de55b (diff)
downloadCMake-b0b5ffcf5caf85cc47ec6a38e3f3e801f8c73bb0.zip
CMake-b0b5ffcf5caf85cc47ec6a38e3f3e801f8c73bb0.tar.gz
CMake-b0b5ffcf5caf85cc47ec6a38e3f3e801f8c73bb0.tar.bz2
MemCheck should now work again in ctest
Diffstat (limited to 'Source/CTest/cmCTestMemCheckHandler.cxx')
-rw-r--r--Source/CTest/cmCTestMemCheckHandler.cxx26
1 files changed, 2 insertions, 24 deletions
diff --git a/Source/CTest/cmCTestMemCheckHandler.cxx b/Source/CTest/cmCTestMemCheckHandler.cxx
index a0d74a3..60b82e7 100644
--- a/Source/CTest/cmCTestMemCheckHandler.cxx
+++ b/Source/CTest/cmCTestMemCheckHandler.cxx
@@ -249,15 +249,14 @@ int cmCTestMemCheckHandler::PostProcessHandler()
//----------------------------------------------------------------------
void cmCTestMemCheckHandler::GenerateTestCommand(
- std::vector<const char*>& args)
+ std::vector<std::string>& args)
{
std::vector<cmStdString>::size_type pp;
- args.push_back(this->MemoryTester.c_str());
std::string memcheckcommand = "";
memcheckcommand = this->MemoryTester;
for ( pp = 0; pp < this->MemoryTesterOptionsParsed.size(); pp ++ )
{
- args.push_back(this->MemoryTesterOptionsParsed[pp].c_str());
+ args.push_back(this->MemoryTesterOptionsParsed[pp]);
memcheckcommand += " ";
memcheckcommand += cmSystemTools::EscapeSpaces(
this->MemoryTesterOptionsParsed[pp].c_str());
@@ -867,27 +866,6 @@ bool cmCTestMemCheckHandler::ProcessMemCheckBoundsCheckerOutput(
}
return true;
}
-//TODO ZACH move this logic into cmCTestRunTest
-void
-cmCTestMemCheckHandler::ProcessOneTest(cmCTestTestProperties *props,
- std::vector<cmStdString> &passed,
- std::vector<cmStdString> &failed,
- int count, int tmsize)
-{
- // run parent test
- cmCTestTestHandler::ProcessOneTest(props, passed, failed, count, tmsize);
- cmCTestTestResult& res = this->TestResults[this->TestResults.size()-1];
- cmCTestLog(this->CTest, HANDLER_VERBOSE_OUTPUT, "process test output now: "
- << props->Name.c_str() << " " << res.Name.c_str() << std::endl);
- if( this->MemoryTesterStyle == cmCTestMemCheckHandler::BOUNDS_CHECKER)
- {
- this->PostProcessBoundsCheckerTest(res);
- }
- else if(this->MemoryTesterStyle == cmCTestMemCheckHandler::PURIFY )
- {
- this->PostProcessPurifyTest(res);
- }
-}
// This method puts the bounds checker output file into the output
// for the test