diff options
author | Brad King <brad.king@kitware.com> | 2009-09-11 14:09:48 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-09-11 14:09:48 (GMT) |
commit | b6c26cded2965d566ad1ad874f9dac146af4ceac (patch) | |
tree | cdb7422df19a3cc5a68bf750b505237106279bca /Source/CTest/cmCTestRunTest.cxx | |
parent | 74b79d3b3996c1aed1d11ddfc06278f7f880454d (diff) | |
download | CMake-b6c26cded2965d566ad1ad874f9dac146af4ceac.zip CMake-b6c26cded2965d566ad1ad874f9dac146af4ceac.tar.gz CMake-b6c26cded2965d566ad1ad874f9dac146af4ceac.tar.bz2 |
Initialize cmCTestRunTest instances robustly
All instances of this class need a cmCTestTestHandler, so we now require
one to construct it. The instance also provides the cmCTest instance
too.
Diffstat (limited to 'Source/CTest/cmCTestRunTest.cxx')
-rw-r--r-- | Source/CTest/cmCTestRunTest.cxx | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/Source/CTest/cmCTestRunTest.cxx b/Source/CTest/cmCTestRunTest.cxx index 92df585..86119a2 100644 --- a/Source/CTest/cmCTestRunTest.cxx +++ b/Source/CTest/cmCTestRunTest.cxx @@ -20,8 +20,10 @@ #include "cmCTest.h" #include "cmSystemTools.h" -cmCTestRunTest::cmCTestRunTest() +cmCTestRunTest::cmCTestRunTest(cmCTestTestHandler* handler) { + this->CTest = handler->CTest; + this->TestHandler = handler; } cmCTestRunTest::~cmCTestRunTest() @@ -302,12 +304,6 @@ void cmCTestRunTest::MemCheckPostProcess() } } -void cmCTestRunTest::SetTestHandler(cmCTestTestHandler * handler) -{ - this->TestHandler = handler; - this->CTest = handler->CTest; -} - //---------------------------------------------------------------------- // Starts the execution of a test. Returns once it has started bool cmCTestRunTest::StartTest() |