diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2014-07-07 19:58:02 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-07-09 13:48:35 (GMT) |
commit | 49948f72214f6e3a4acb566f773ac3ad86e6c68c (patch) | |
tree | 7e81570edd08a6a6376a68560240000544c6db92 /Source/CTest/cmCTestRunTest.cxx | |
parent | 4e7983bc06219e24ff37699b66a1e1697d2fc171 (diff) | |
download | CMake-49948f72214f6e3a4acb566f773ac3ad86e6c68c.zip CMake-49948f72214f6e3a4acb566f773ac3ad86e6c68c.tar.gz CMake-49948f72214f6e3a4acb566f773ac3ad86e6c68c.tar.bz2 |
ctest_memcheck: Add support for ThreadSanitizer
This commit adds support for ThreadSanitizer to ctest. ThreadSanitizer
is part of the clang compiler and also gcc 4.8 and later. You have to
compile the code with special flags. Then your code gets the the
ThreadSanitizer ability built into it. To pass options to the
ThreadSanitizer you use an environment variable. This commit teaches
ctest to parse the output from ThreadSanitizer and send it to CDash.
Diffstat (limited to 'Source/CTest/cmCTestRunTest.cxx')
-rw-r--r-- | Source/CTest/cmCTestRunTest.cxx | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/Source/CTest/cmCTestRunTest.cxx b/Source/CTest/cmCTestRunTest.cxx index 385388d..bdd8c02 100644 --- a/Source/CTest/cmCTestRunTest.cxx +++ b/Source/CTest/cmCTestRunTest.cxx @@ -392,20 +392,7 @@ void cmCTestRunTest::MemCheckPostProcess() << this->TestResult.Name << std::endl); cmCTestMemCheckHandler * handler = static_cast<cmCTestMemCheckHandler*> (this->TestHandler); - switch ( handler->MemoryTesterStyle ) - { - case cmCTestMemCheckHandler::VALGRIND: - handler->PostProcessValgrindTest(this->TestResult, this->Index); - break; - case cmCTestMemCheckHandler::PURIFY: - handler->PostProcessPurifyTest(this->TestResult, this->Index); - break; - case cmCTestMemCheckHandler::BOUNDS_CHECKER: - handler->PostProcessBoundsCheckerTest(this->TestResult, this->Index); - break; - default: - break; - } + handler->PostProcessTest(this->TestResult, this->Index); } //---------------------------------------------------------------------- |