diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2007-07-24 18:43:31 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2007-07-24 18:43:31 (GMT) |
commit | 132cb5d4790fa983648e5228f64e8ff720ecc67a (patch) | |
tree | fa3fe570442bb33f3cb32697a5452b8de6692400 /Source/CTest/cmCTestMemCheckHandler.h | |
parent | 919265516ea3233e6a4e29a17ad4ec24150eefda (diff) | |
download | CMake-132cb5d4790fa983648e5228f64e8ff720ecc67a.zip CMake-132cb5d4790fa983648e5228f64e8ff720ecc67a.tar.gz CMake-132cb5d4790fa983648e5228f64e8ff720ecc67a.tar.bz2 |
ENH: add support for bounds checker
Diffstat (limited to 'Source/CTest/cmCTestMemCheckHandler.h')
-rw-r--r-- | Source/CTest/cmCTestMemCheckHandler.h | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/Source/CTest/cmCTestMemCheckHandler.h b/Source/CTest/cmCTestMemCheckHandler.h index 8a21d48..8a9e4e7 100644 --- a/Source/CTest/cmCTestMemCheckHandler.h +++ b/Source/CTest/cmCTestMemCheckHandler.h @@ -51,7 +51,7 @@ private: PURIFY, BOUNDS_CHECKER }; - +public: enum { // Memory faults ABR = 0, ABW, @@ -77,7 +77,7 @@ private: UMR, NO_MEMORY_FAULT }; - +private: enum { // Program statuses NOT_RUN = 0, TIMEOUT, @@ -90,7 +90,8 @@ private: BAD_COMMAND, COMPLETED }; - + std::string BoundsCheckerDPBDFile; + std::string BoundsCheckerXMLFile; std::string MemoryTester; std::vector<cmStdString> MemoryTesterOptionsParsed; std::string MemoryTesterOptions; @@ -118,7 +119,17 @@ private: std::string& log, int* results); bool ProcessMemCheckPurifyOutput(const std::string& str, std::string& log, int* results); - + bool ProcessMemCheckBoundsCheckerOutput(const std::string& str, + std::string& log, int* results); + /** + * Run one test + */ + virtual void ProcessOneTest(cmCTestTestProperties *props, + std::vector<cmStdString> &passed, + std::vector<cmStdString> &failed, + int count, int tmsize); + void PostProcessPurifyTest(cmCTestTestResult& res); + void PostProcessBoundsCheckerTest(cmCTestTestResult& res); }; #endif |