diff options
author | Nils Gladitz <nilsgladitz@gmail.com> | 2013-10-21 17:32:53 (GMT) |
---|---|---|
committer | Nils Gladitz <nilsgladitz@gmail.com> | 2013-10-21 17:32:53 (GMT) |
commit | adbe00d6e10906466c82ac3ddc8ef2d14a98a417 (patch) | |
tree | 088d93f7bae487cd3f9ffba8d16470002ff80c3e /Source/CTest | |
parent | 1b750cbf9a77388b96b8fd3420c602d98a2e0ab9 (diff) | |
download | CMake-adbe00d6e10906466c82ac3ddc8ef2d14a98a417.zip CMake-adbe00d6e10906466c82ac3ddc8ef2d14a98a417.tar.gz CMake-adbe00d6e10906466c82ac3ddc8ef2d14a98a417.tar.bz2 |
CTest: removed redundant copy of test dependency set
Diffstat (limited to 'Source/CTest')
-rw-r--r-- | Source/CTest/cmCTestMultiProcessHandler.cxx | 8 |
1 files changed, 1 insertions, 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; |