Merge topic 'fix-valgrind-in-path'
58cc3c22 Fix ctest to allow valgrind to show up in the path name of a memcheck tool.
This commit is contained in:
commit
6b05e03de4
@ -423,17 +423,18 @@ bool cmCTestMemCheckHandler::InitializeMemoryChecking()
|
|||||||
{
|
{
|
||||||
this->MemoryTester
|
this->MemoryTester
|
||||||
= this->CTest->GetCTestConfiguration("MemoryCheckCommand").c_str();
|
= this->CTest->GetCTestConfiguration("MemoryCheckCommand").c_str();
|
||||||
|
std::string testerName =
|
||||||
|
cmSystemTools::GetFilenameName(this->MemoryTester);
|
||||||
// determine the checker type
|
// determine the checker type
|
||||||
if ( this->MemoryTester.find("valgrind") != std::string::npos )
|
if ( testerName.find("valgrind") != std::string::npos )
|
||||||
{
|
{
|
||||||
this->MemoryTesterStyle = cmCTestMemCheckHandler::VALGRIND;
|
this->MemoryTesterStyle = cmCTestMemCheckHandler::VALGRIND;
|
||||||
}
|
}
|
||||||
else if ( this->MemoryTester.find("purify") != std::string::npos )
|
else if ( testerName.find("purify") != std::string::npos )
|
||||||
{
|
{
|
||||||
this->MemoryTesterStyle = cmCTestMemCheckHandler::PURIFY;
|
this->MemoryTesterStyle = cmCTestMemCheckHandler::PURIFY;
|
||||||
}
|
}
|
||||||
else if ( this->MemoryTester.find("BC") != std::string::npos )
|
else if ( testerName.find("BC") != std::string::npos )
|
||||||
{
|
{
|
||||||
this->MemoryTesterStyle = cmCTestMemCheckHandler::BOUNDS_CHECKER;
|
this->MemoryTesterStyle = cmCTestMemCheckHandler::BOUNDS_CHECKER;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user