From 867e41d23b34854a7b8149a86e291e0233274992 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Thu, 16 Mar 2006 11:29:12 -0500 Subject: BUG: Couple of memcheck bugs: Log files should really be different for test and memcheck. Also make sure to not trunkate the output of the test until the valgrind or any other checking is pefrormed. --- Source/CTest/cmCTestMemCheckHandler.cxx | 4 ++++ Source/CTest/cmCTestTestHandler.cxx | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/CTest/cmCTestMemCheckHandler.cxx b/Source/CTest/cmCTestMemCheckHandler.cxx index 4d4c527..76ed378 100644 --- a/Source/CTest/cmCTestMemCheckHandler.cxx +++ b/Source/CTest/cmCTestMemCheckHandler.cxx @@ -88,6 +88,8 @@ static const char* cmCTestMemCheckResultLongStrings[] = { cmCTestMemCheckHandler::cmCTestMemCheckHandler() { this->MemCheck = true; + this->CustomMaximumPassedTestOutputSize = 0; + this->CustomMaximumFailedTestOutputSize = 0; } //---------------------------------------------------------------------- @@ -224,6 +226,8 @@ void cmCTestMemCheckHandler::GenerateDartOutput(std::ostream& os) { continue; } + this->CleanTestOutput(memcheckstr, + static_cast(this->CustomMaximumFailedTestOutputSize)); os << "\tStatus == cmCTestMemCheckHandler::COMPLETED ) { diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx index af7ed42..30b0abb 100644 --- a/Source/CTest/cmCTestTestHandler.cxx +++ b/Source/CTest/cmCTestTestHandler.cxx @@ -457,7 +457,7 @@ int cmCTestTestHandler::ProcessHandler() } cmGeneratedFileStream mLogFile; - this->StartLogFile("Tests", mLogFile); + this->StartLogFile((this->MemCheck ? "DynamicAnalysis" : "Test"), mLogFile); this->LogFile = &mLogFile; std::vector passed; -- cgit v0.12