Bläddra i källkod

CTest: removed redundant copy of test dependency set

Nils Gladitz 12 år sedan
förälder
incheckning
adbe00d6e1
1 ändrade filer med 1 tillägg och 7 borttagningar
  1. 1 7
      Source/CTest/cmCTestMultiProcessHandler.cxx

+ 1 - 7
Source/CTest/cmCTestMultiProcessHandler.cxx

@@ -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;