summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorDietmar Scheidl <dietmar.scheidl@dynatrace.com>2019-12-06 19:26:52 +0100
committerBrad King <brad.king@kitware.com>2019-12-10 14:36:19 -0500
commit2db0a65f56f66454d36a35a74fde27c0833c956f (patch)
tree1ce7e6f7f8ffedaeae7b03db9f7c81d8b2e77295 /Source
parentc57bcf3b3025875dfbfd1d1f6eca1291abf4d2f7 (diff)
downloadcmake-2db0a65f56f66454d36a35a74fde27c0833c956f.tar.gz
cmCTestMemCheckHandler.cxx: minor refactoring
Diffstat (limited to 'Source')
-rw-r--r--Source/CTest/cmCTestMemCheckHandler.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/Source/CTest/cmCTestMemCheckHandler.cxx b/Source/CTest/cmCTestMemCheckHandler.cxx
index a5ec1ae81e..8093622cc4 100644
--- a/Source/CTest/cmCTestMemCheckHandler.cxx
+++ b/Source/CTest/cmCTestMemCheckHandler.cxx
@@ -162,12 +162,9 @@ int cmCTestMemCheckHandler::PostProcessHandler()
void cmCTestMemCheckHandler::GenerateTestCommand(
std::vector<std::string>& args, int test)
{
- std::string index;
- std::ostringstream stream;
+ std::string index = std::to_string(test);
std::string memcheckcommand =
cmSystemTools::ConvertToOutputPath(this->MemoryTester);
- stream << test;
- index = stream.str();
for (std::string arg : this->MemoryTesterDynamicOptions) {
std::string::size_type pos = arg.find("??");
if (pos != std::string::npos) {
@@ -387,11 +384,11 @@ void cmCTestMemCheckHandler::GenerateDartOutput(cmXMLWriter& xml)
}
cmCTestOptionalLog(this->CTest, HANDLER_OUTPUT,
"MemCheck log files can be found here: "
- "( * corresponds to test number)"
+ "(<#> corresponds to test number)"
<< std::endl,
this->Quiet);
std::string output = this->MemoryTesterOutputFile;
- cmSystemTools::ReplaceString(output, "??", "*");
+ cmSystemTools::ReplaceString(output, "??", "<#>");
cmCTestOptionalLog(this->CTest, HANDLER_OUTPUT, output << std::endl,
this->Quiet);
cmCTestOptionalLog(this->CTest, HANDLER_OUTPUT,