浏览代码

CTest: removed redundant copy of test dependency set

Nils Gladitz 12 年之前
父节点
当前提交
adbe00d6e1
共有 1 个文件被更改,包括 1 次插入7 次删除
  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;