diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2020-03-18 21:30:08 (GMT) |
---|---|---|
committer | Rolf Eike Beer <eike@sf-mail.de> | 2020-03-23 18:47:47 (GMT) |
commit | dc21177461f6d4bf9737761cbd5a9f0db88525e7 (patch) | |
tree | 308bd5a06e97bb087a30ee4455d91322caeba9ff | |
parent | 36bfb80338bdd93dbecb9776ebd8583a68b6c439 (diff) | |
download | CMake-dc21177461f6d4bf9737761cbd5a9f0db88525e7.zip CMake-dc21177461f6d4bf9737761cbd5a9f0db88525e7.tar.gz CMake-dc21177461f6d4bf9737761cbd5a9f0db88525e7.tar.bz2 |
remove pointless return value from cmCTestTestHandler::CleanTestOutput()
-rw-r--r-- | Source/CTest/cmCTestTestHandler.cxx | 5 | ||||
-rw-r--r-- | Source/CTest/cmCTestTestHandler.h | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx index 8513f4b..5ae5867 100644 --- a/Source/CTest/cmCTestTestHandler.cxx +++ b/Source/CTest/cmCTestTestHandler.cxx @@ -2089,11 +2089,11 @@ void cmCTestTestHandler::SetTestsToRunInformation(const char* in) } } -bool cmCTestTestHandler::CleanTestOutput(std::string& output, size_t length) +void cmCTestTestHandler::CleanTestOutput(std::string& output, size_t length) { if (!length || length >= output.size() || output.find("CTEST_FULL_OUTPUT") != std::string::npos) { - return true; + return; } // Truncate at given length but do not break in the middle of a multi-byte @@ -2124,7 +2124,6 @@ bool cmCTestTestHandler::CleanTestOutput(std::string& output, size_t length) "of " << length << " bytes.\n"; output += msg.str(); - return true; } bool cmCTestTestHandler::SetTestsProperties( diff --git a/Source/CTest/cmCTestTestHandler.h b/Source/CTest/cmCTestTestHandler.h index b1c8755..8a49ec2 100644 --- a/Source/CTest/cmCTestTestHandler.h +++ b/Source/CTest/cmCTestTestHandler.h @@ -235,7 +235,7 @@ protected: void AttachFiles(cmXMLWriter& xml, cmCTestTestResult& result); //! Clean test output to specified length - bool CleanTestOutput(std::string& output, size_t length); + void CleanTestOutput(std::string& output, size_t length); cmDuration ElapsedTestingTime; |