diff options
author | Dietmar Scheidl <dietmar.scheidl@dynatrace.com> | 2019-12-06 18:26:52 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-12-10 19:36:19 (GMT) |
commit | 2db0a65f56f66454d36a35a74fde27c0833c956f (patch) | |
tree | 1ce7e6f7f8ffedaeae7b03db9f7c81d8b2e77295 /Source/CTest | |
parent | c57bcf3b3025875dfbfd1d1f6eca1291abf4d2f7 (diff) | |
download | CMake-2db0a65f56f66454d36a35a74fde27c0833c956f.zip CMake-2db0a65f56f66454d36a35a74fde27c0833c956f.tar.gz CMake-2db0a65f56f66454d36a35a74fde27c0833c956f.tar.bz2 |
cmCTestMemCheckHandler.cxx: minor refactoring
Diffstat (limited to 'Source/CTest')
-rw-r--r-- | Source/CTest/cmCTestMemCheckHandler.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Source/CTest/cmCTestMemCheckHandler.cxx b/Source/CTest/cmCTestMemCheckHandler.cxx index a5ec1ae..8093622 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, |