Fixed a bug where it was possible for a test to be started twice if a lower-indexed test depended on it.

This commit is contained in:
Zach Mullen 2009-11-09 16:07:47 -05:00
parent 0106b490de
commit f7899c7445
1 changed files with 5 additions and 0 deletions

View File

@ -196,6 +196,11 @@ void cmCTestMultiProcessHandler::StartNextTests()
for(TestSet::iterator test = tests.begin(); for(TestSet::iterator test = tests.begin();
test != tests.end(); ++test) test != tests.end(); ++test)
{ {
//in case this test has already been started due to dependency
if(this->TestRunningMap[*test] || this->TestFinishMap[*test])
{
continue;
}
size_t processors = GetProcessorsUsed(*test); size_t processors = GetProcessorsUsed(*test);
if(processors > numToStart) if(processors > numToStart)
{ {