CTest: perform cycle test early
This commit is contained in:
parent
6d4d7ca955
commit
1b750cbf9a
|
@ -41,6 +41,7 @@ cmCTestMultiProcessHandler::cmCTestMultiProcessHandler()
|
|||
this->Completed = 0;
|
||||
this->RunningCount = 0;
|
||||
this->StopTimePassed = false;
|
||||
this->HasCycles = false;
|
||||
}
|
||||
|
||||
cmCTestMultiProcessHandler::~cmCTestMultiProcessHandler()
|
||||
|
@ -65,6 +66,11 @@ cmCTestMultiProcessHandler::SetTests(TestMap& tests,
|
|||
if(!this->CTest->GetShowOnly())
|
||||
{
|
||||
this->ReadCostData();
|
||||
this->HasCycles = !this->CheckCycles();
|
||||
if(this->HasCycles)
|
||||
{
|
||||
return;
|
||||
}
|
||||
this->CreateTestCostList();
|
||||
}
|
||||
}
|
||||
|
@ -79,7 +85,7 @@ void cmCTestMultiProcessHandler::SetParallelLevel(size_t level)
|
|||
void cmCTestMultiProcessHandler::RunTests()
|
||||
{
|
||||
this->CheckResume();
|
||||
if(!this->CheckCycles())
|
||||
if(this->HasCycles)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -111,6 +111,7 @@ protected:
|
|||
std::set<cmCTestRunTest*> RunningTests; // current running tests
|
||||
cmCTestTestHandler * TestHandler;
|
||||
cmCTest* CTest;
|
||||
bool HasCycles;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue