summaryrefslogtreecommitdiffstats
path: root/Source/CTest
diff options
context:
space:
mode:
authorSylvain Joubert <joubert.sy@gmail.com>2017-01-12 10:32:58 (GMT)
committerSylvain Joubert <joubert.sy@gmail.com>2017-01-12 10:32:58 (GMT)
commita10586377232b28be13c2bf90c98d002067eb5fc (patch)
tree027a238d2672be6644f6a61e79d7f9f0df228608 /Source/CTest
parent053adc60ee80e55f2a8c09fadadc5db6e789412d (diff)
downloadCMake-a10586377232b28be13c2bf90c98d002067eb5fc.zip
CMake-a10586377232b28be13c2bf90c98d002067eb5fc.tar.gz
CMake-a10586377232b28be13c2bf90c98d002067eb5fc.tar.bz2
CTest: Properly reset output to avoid duplication with --repeat-until-fail
Diffstat (limited to 'Source/CTest')
-rw-r--r--Source/CTest/cmCTestRunTest.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestRunTest.cxx b/Source/CTest/cmCTestRunTest.cxx
index 5c45fe5..ac1644f 100644
--- a/Source/CTest/cmCTestRunTest.cxx
+++ b/Source/CTest/cmCTestRunTest.cxx
@@ -134,6 +134,7 @@ void cmCTestRunTest::CompressOutput()
size_t rlen = cmsysBase64_Encode(out, strm.total_out, encoded_buffer, 1);
+ this->CompressedOutput.clear();
for (size_t i = 0; i < rlen; i++) {
this->CompressedOutput += encoded_buffer[i];
}
@@ -416,6 +417,7 @@ bool cmCTestRunTest::StartTest(size_t total)
<< std::setw(getNumWidth(this->TestHandler->GetMaxIndex()))
<< this->TestProperties->Index << ": "
<< this->TestProperties->Name << std::endl);
+ this->ProcessOutput.clear();
this->ComputeArguments();
std::vector<std::string>& args = this->TestProperties->Args;
this->TestResult.Properties = this->TestProperties;