summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestRunTest.cxx
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2013-05-04 17:03:26 (GMT)
committerRolf Eike Beer <eike@sf-mail.de>2013-05-09 17:22:01 (GMT)
commitdde6306a48e0eac9783737ca2dab3ce28e27c869 (patch)
treedccd4e50d1b6e034ebfa0908a7ffa49ed3573a2b /Source/CTest/cmCTestRunTest.cxx
parentbcc0f3fb05276c58387e6ea43c1cf913790db0ed (diff)
downloadCMake-dde6306a48e0eac9783737ca2dab3ce28e27c869.zip
CMake-dde6306a48e0eac9783737ca2dab3ce28e27c869.tar.gz
CMake-dde6306a48e0eac9783737ca2dab3ce28e27c869.tar.bz2
CTest: use an output file for Valgrind (#14110)
This makes sure Valgrind output will not screw up tests that match on the output.
Diffstat (limited to 'Source/CTest/cmCTestRunTest.cxx')
-rw-r--r--Source/CTest/cmCTestRunTest.cxx18
1 files changed, 12 insertions, 6 deletions
diff --git a/Source/CTest/cmCTestRunTest.cxx b/Source/CTest/cmCTestRunTest.cxx
index 5eabf3f..aa27f19 100644
--- a/Source/CTest/cmCTestRunTest.cxx
+++ b/Source/CTest/cmCTestRunTest.cxx
@@ -384,13 +384,19 @@ void cmCTestRunTest::MemCheckPostProcess()
<< this->TestResult.Name.c_str() << std::endl);
cmCTestMemCheckHandler * handler = static_cast<cmCTestMemCheckHandler*>
(this->TestHandler);
- if(handler->MemoryTesterStyle == cmCTestMemCheckHandler::BOUNDS_CHECKER)
+ switch ( handler->MemoryTesterStyle )
{
- handler->PostProcessBoundsCheckerTest(this->TestResult);
- }
- else if(handler->MemoryTesterStyle == cmCTestMemCheckHandler::PURIFY)
- {
- handler->PostProcessPurifyTest(this->TestResult);
+ case cmCTestMemCheckHandler::VALGRIND:
+ handler->PostProcessValgrindTest(this->TestResult);
+ break;
+ case cmCTestMemCheckHandler::PURIFY:
+ handler->PostProcessPurifyTest(this->TestResult);
+ break;
+ case cmCTestMemCheckHandler::BOUNDS_CHECKER:
+ handler->PostProcessBoundsCheckerTest(this->TestResult);
+ break;
+ default:
+ break;
}
}