CTest: removed redundant copy of test dependency set
This commit is contained in:
parent
1b750cbf9a
commit
adbe00d6e1
|
@ -211,14 +211,8 @@ bool cmCTestMultiProcessHandler::StartTest(int test)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// copy the depend tests locally because when
|
|
||||||
// a test is finished it will be removed from the depend list
|
|
||||||
// and we don't want to be iterating a list while removing from it
|
|
||||||
TestSet depends = this->Tests[test];
|
|
||||||
size_t totalDepends = depends.size();
|
|
||||||
|
|
||||||
// if there are no depends left then run this test
|
// if there are no depends left then run this test
|
||||||
if(totalDepends == 0)
|
if(this->Tests[test].empty())
|
||||||
{
|
{
|
||||||
this->StartTestProcess(test);
|
this->StartTestProcess(test);
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue