summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestMemCheckHandler.cxx
diff options
context:
space:
mode:
authorZach Mullen <zach.mullen@kitware.com>2011-05-26 18:42:41 (GMT)
committerZach Mullen <zach.mullen@kitware.com>2011-05-26 18:50:07 (GMT)
commit9c3a0b9f140f8503bb177c97aadab26fbdded197 (patch)
tree9c52f3591f9e0eb2e9f2ec98f0230ebeffa8e0e7 /Source/CTest/cmCTestMemCheckHandler.cxx
parent8024c53389df3ef404725e3d0c5d91a8f7eafbfc (diff)
downloadCMake-9c3a0b9f140f8503bb177c97aadab26fbdded197.zip
CMake-9c3a0b9f140f8503bb177c97aadab26fbdded197.tar.gz
CMake-9c3a0b9f140f8503bb177c97aadab26fbdded197.tar.bz2
We will actually compress memcheck output if the server supports it.
This change won't be functional until the next release of CDash due to the version comparison.
Diffstat (limited to 'Source/CTest/cmCTestMemCheckHandler.cxx')
-rw-r--r--Source/CTest/cmCTestMemCheckHandler.cxx14
1 files changed, 13 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestMemCheckHandler.cxx b/Source/CTest/cmCTestMemCheckHandler.cxx
index 13a25cb..0612449 100644
--- a/Source/CTest/cmCTestMemCheckHandler.cxx
+++ b/Source/CTest/cmCTestMemCheckHandler.cxx
@@ -344,9 +344,21 @@ void cmCTestMemCheckHandler::GenerateDartOutput(std::ostream& os)
}
this->MemoryTesterGlobalResults[kk] += memcheckresults[kk];
}
+
+ std::string logTag;
+ if(this->CTest->ShouldCompressMemCheckOutput())
+ {
+ this->CTest->CompressString(memcheckstr);
+ logTag = "\t<Log compression=\"gzip\" encoding=\"base64\">\n";
+ }
+ else
+ {
+ logTag = "\t<Log>\n";
+ }
+
os
<< "\t\t</Results>\n"
- << "\t<Log>\n" << memcheckstr << std::endl
+ << logTag << memcheckstr << std::endl
<< "\t</Log>\n";
this->WriteTestResultFooter(os, result);
if ( current < cc )