From adbe00d6e10906466c82ac3ddc8ef2d14a98a417 Mon Sep 17 00:00:00 2001 From: Nils Gladitz Date: Mon, 21 Oct 2013 19:32:53 +0200 Subject: CTest: removed redundant copy of test dependency set --- Source/CTest/cmCTestMultiProcessHandler.cxx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Source/CTest/cmCTestMultiProcessHandler.cxx b/Source/CTest/cmCTestMultiProcessHandler.cxx index 33e88b2..510d3c5 100644 --- a/Source/CTest/cmCTestMultiProcessHandler.cxx +++ b/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; -- cgit v0.12