CTest: removed redundant copy of test dependency set

This commit is contained in:
Nils Gladitz 2013-10-21 19:32:53 +02:00
parent 1b750cbf9a
commit adbe00d6e1
1 changed files with 1 additions and 7 deletions

View File

@ -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(totalDepends == 0)
if(this->Tests[test].empty())
{
this->StartTestProcess(test);
return true;