|
@@ -422,7 +422,7 @@ bool cmCTestMemCheckHandler::InitializeMemoryChecking()
|
|
|
if (cmSystemTools::FileExists(
|
|
if (cmSystemTools::FileExists(
|
|
|
this->CTest->GetCTestConfiguration("MemoryCheckCommand").c_str())) {
|
|
this->CTest->GetCTestConfiguration("MemoryCheckCommand").c_str())) {
|
|
|
this->MemoryTester =
|
|
this->MemoryTester =
|
|
|
- this->CTest->GetCTestConfiguration("MemoryCheckCommand").c_str();
|
|
|
|
|
|
|
+ this->CTest->GetCTestConfiguration("MemoryCheckCommand");
|
|
|
std::string testerName =
|
|
std::string testerName =
|
|
|
cmSystemTools::GetFilenameName(this->MemoryTester);
|
|
cmSystemTools::GetFilenameName(this->MemoryTester);
|
|
|
// determine the checker type
|
|
// determine the checker type
|
|
@@ -438,47 +438,41 @@ bool cmCTestMemCheckHandler::InitializeMemoryChecking()
|
|
|
}
|
|
}
|
|
|
} else if (cmSystemTools::FileExists(
|
|
} else if (cmSystemTools::FileExists(
|
|
|
this->CTest->GetCTestConfiguration("PurifyCommand").c_str())) {
|
|
this->CTest->GetCTestConfiguration("PurifyCommand").c_str())) {
|
|
|
- this->MemoryTester =
|
|
|
|
|
- this->CTest->GetCTestConfiguration("PurifyCommand").c_str();
|
|
|
|
|
|
|
+ this->MemoryTester = this->CTest->GetCTestConfiguration("PurifyCommand");
|
|
|
this->MemoryTesterStyle = cmCTestMemCheckHandler::PURIFY;
|
|
this->MemoryTesterStyle = cmCTestMemCheckHandler::PURIFY;
|
|
|
} else if (cmSystemTools::FileExists(
|
|
} else if (cmSystemTools::FileExists(
|
|
|
this->CTest->GetCTestConfiguration("ValgrindCommand")
|
|
this->CTest->GetCTestConfiguration("ValgrindCommand")
|
|
|
.c_str())) {
|
|
.c_str())) {
|
|
|
- this->MemoryTester =
|
|
|
|
|
- this->CTest->GetCTestConfiguration("ValgrindCommand").c_str();
|
|
|
|
|
|
|
+ this->MemoryTester = this->CTest->GetCTestConfiguration("ValgrindCommand");
|
|
|
this->MemoryTesterStyle = cmCTestMemCheckHandler::VALGRIND;
|
|
this->MemoryTesterStyle = cmCTestMemCheckHandler::VALGRIND;
|
|
|
} else if (cmSystemTools::FileExists(
|
|
} else if (cmSystemTools::FileExists(
|
|
|
this->CTest->GetCTestConfiguration("BoundsCheckerCommand")
|
|
this->CTest->GetCTestConfiguration("BoundsCheckerCommand")
|
|
|
.c_str())) {
|
|
.c_str())) {
|
|
|
this->MemoryTester =
|
|
this->MemoryTester =
|
|
|
- this->CTest->GetCTestConfiguration("BoundsCheckerCommand").c_str();
|
|
|
|
|
|
|
+ this->CTest->GetCTestConfiguration("BoundsCheckerCommand");
|
|
|
this->MemoryTesterStyle = cmCTestMemCheckHandler::BOUNDS_CHECKER;
|
|
this->MemoryTesterStyle = cmCTestMemCheckHandler::BOUNDS_CHECKER;
|
|
|
}
|
|
}
|
|
|
if (this->CTest->GetCTestConfiguration("MemoryCheckType") ==
|
|
if (this->CTest->GetCTestConfiguration("MemoryCheckType") ==
|
|
|
"AddressSanitizer") {
|
|
"AddressSanitizer") {
|
|
|
- this->MemoryTester =
|
|
|
|
|
- this->CTest->GetCTestConfiguration("CMakeCommand").c_str();
|
|
|
|
|
|
|
+ this->MemoryTester = this->CTest->GetCTestConfiguration("CMakeCommand");
|
|
|
this->MemoryTesterStyle = cmCTestMemCheckHandler::ADDRESS_SANITIZER;
|
|
this->MemoryTesterStyle = cmCTestMemCheckHandler::ADDRESS_SANITIZER;
|
|
|
this->LogWithPID = true; // even if we give the log file the pid is added
|
|
this->LogWithPID = true; // even if we give the log file the pid is added
|
|
|
}
|
|
}
|
|
|
if (this->CTest->GetCTestConfiguration("MemoryCheckType") ==
|
|
if (this->CTest->GetCTestConfiguration("MemoryCheckType") ==
|
|
|
"ThreadSanitizer") {
|
|
"ThreadSanitizer") {
|
|
|
- this->MemoryTester =
|
|
|
|
|
- this->CTest->GetCTestConfiguration("CMakeCommand").c_str();
|
|
|
|
|
|
|
+ this->MemoryTester = this->CTest->GetCTestConfiguration("CMakeCommand");
|
|
|
this->MemoryTesterStyle = cmCTestMemCheckHandler::THREAD_SANITIZER;
|
|
this->MemoryTesterStyle = cmCTestMemCheckHandler::THREAD_SANITIZER;
|
|
|
this->LogWithPID = true; // even if we give the log file the pid is added
|
|
this->LogWithPID = true; // even if we give the log file the pid is added
|
|
|
}
|
|
}
|
|
|
if (this->CTest->GetCTestConfiguration("MemoryCheckType") ==
|
|
if (this->CTest->GetCTestConfiguration("MemoryCheckType") ==
|
|
|
"MemorySanitizer") {
|
|
"MemorySanitizer") {
|
|
|
- this->MemoryTester =
|
|
|
|
|
- this->CTest->GetCTestConfiguration("CMakeCommand").c_str();
|
|
|
|
|
|
|
+ this->MemoryTester = this->CTest->GetCTestConfiguration("CMakeCommand");
|
|
|
this->MemoryTesterStyle = cmCTestMemCheckHandler::MEMORY_SANITIZER;
|
|
this->MemoryTesterStyle = cmCTestMemCheckHandler::MEMORY_SANITIZER;
|
|
|
this->LogWithPID = true; // even if we give the log file the pid is added
|
|
this->LogWithPID = true; // even if we give the log file the pid is added
|
|
|
}
|
|
}
|
|
|
if (this->CTest->GetCTestConfiguration("MemoryCheckType") ==
|
|
if (this->CTest->GetCTestConfiguration("MemoryCheckType") ==
|
|
|
"UndefinedBehaviorSanitizer") {
|
|
"UndefinedBehaviorSanitizer") {
|
|
|
- this->MemoryTester =
|
|
|
|
|
- this->CTest->GetCTestConfiguration("CMakeCommand").c_str();
|
|
|
|
|
|
|
+ this->MemoryTester = this->CTest->GetCTestConfiguration("CMakeCommand");
|
|
|
this->MemoryTesterStyle = cmCTestMemCheckHandler::UB_SANITIZER;
|
|
this->MemoryTesterStyle = cmCTestMemCheckHandler::UB_SANITIZER;
|
|
|
this->LogWithPID = true; // even if we give the log file the pid is added
|
|
this->LogWithPID = true; // even if we give the log file the pid is added
|
|
|
}
|
|
}
|