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/cmCTestMultiProcessHandler.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/cmCTestMultiProcessHandler.cxx')
-rw-r--r-- | Source/CTest/cmCTestMultiProcessHandler.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Source/CTest/cmCTestMultiProcessHandler.cxx b/Source/CTest/cmCTestMultiProcessHandler.cxx index bebaf1e..7d3a8bf 100644 --- a/Source/CTest/cmCTestMultiProcessHandler.cxx +++ b/Source/CTest/cmCTestMultiProcessHandler.cxx @@ -83,9 +83,7 @@ void cmCTestMultiProcessHandler::StartTestProcess(int test) // now remove the test itself this->EraseTest(test); - cmCTestRunTest* testRun = new cmCTestRunTest; - testRun->SetCTest(this->CTest); - testRun->SetTestHandler(this->TestHandler); + cmCTestRunTest* testRun = new cmCTestRunTest(this->TestHandler); testRun->SetIndex(test); testRun->SetTestProperties(this->Properties[test]); if(testRun->StartTest()) @@ -346,9 +344,7 @@ void cmCTestMultiProcessHandler::PrintTestList() count++; cmCTestTestHandler::cmCTestTestProperties& p = *it->second; - cmCTestRunTest testRun; - testRun.SetCTest(this->CTest); - testRun.SetTestHandler(this->TestHandler); + cmCTestRunTest testRun(this->TestHandler); testRun.SetIndex(p.Index); testRun.SetTestProperties(&p); testRun.ComputeArguments(); //logs the command in verbose mode |