summaryrefslogtreecommitdiffstats
path: root/Source/CTest
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-03-16 16:29:12 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-03-16 16:29:12 (GMT)
commit867e41d23b34854a7b8149a86e291e0233274992 (patch)
treef05583a8116fdfabec49530cdd814015b071ab67 /Source/CTest
parente97583629244fd01ccf15b2a587ffcb1d31879f9 (diff)
downloadCMake-867e41d23b34854a7b8149a86e291e0233274992.zip
CMake-867e41d23b34854a7b8149a86e291e0233274992.tar.gz
CMake-867e41d23b34854a7b8149a86e291e0233274992.tar.bz2
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.
Diffstat (limited to 'Source/CTest')
-rw-r--r--Source/CTest/cmCTestMemCheckHandler.cxx4
-rw-r--r--Source/CTest/cmCTestTestHandler.cxx2
2 files changed, 5 insertions, 1 deletions
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<size_t>(this->CustomMaximumFailedTestOutputSize));
os << "\t<Test Status=\"";
if ( result->Status == 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<cmStdString> passed;