summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestMemCheckHandler.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-06-17 17:04:56 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-06-17 17:04:56 (GMT)
commitd9dc9b54a62c20be2cf42ce050780e1b924e412c (patch)
treefbc9478d4a3559ec8c6ee5c61a008e031c982f99 /Source/CTest/cmCTestMemCheckHandler.cxx
parentd3239ac68f4cc74e5f5c7cecf876f07262bbf57e (diff)
downloadCMake-d9dc9b54a62c20be2cf42ce050780e1b924e412c.zip
CMake-d9dc9b54a62c20be2cf42ce050780e1b924e412c.tar.gz
CMake-d9dc9b54a62c20be2cf42ce050780e1b924e412c.tar.bz2
ENH: Add superclass for all commands and handlers. Improve handlers to have initialization code, and start initializing ctest when start is invoked
Diffstat (limited to 'Source/CTest/cmCTestMemCheckHandler.cxx')
-rw-r--r--Source/CTest/cmCTestMemCheckHandler.cxx17
1 files changed, 17 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestMemCheckHandler.cxx b/Source/CTest/cmCTestMemCheckHandler.cxx
index a5646c0..7665cba 100644
--- a/Source/CTest/cmCTestMemCheckHandler.cxx
+++ b/Source/CTest/cmCTestMemCheckHandler.cxx
@@ -91,6 +91,23 @@ cmCTestMemCheckHandler::cmCTestMemCheckHandler()
}
//----------------------------------------------------------------------
+void cmCTestMemCheckHandler::Initialize()
+{
+ this->Superclass::Initialize();
+ m_MemoryTester = "";
+ m_MemoryTesterOptionsParsed.clear();
+ m_MemoryTesterOptions = "";
+ m_MemoryTesterStyle = UNKNOWN;
+ m_MemoryTesterOutputFile = "";
+ int cc;
+ for ( cc = 0; cc < NO_MEMORY_FAULT; cc ++ )
+ {
+ m_MemoryTesterGlobalResults[cc] = 0;
+ }
+
+}
+
+//----------------------------------------------------------------------
int cmCTestMemCheckHandler::PreProcessHandler()
{
if ( !this->InitializeMemoryChecking() )