Fix TrackerBase::close children completion check

Now verifies that all children have completed, instead of only the last.
This commit is contained in:
Steven Franzen 2019-06-29 18:02:28 +02:00
parent 6f32c67ea7
commit 800f1b1d3d
No known key found for this signature in database
GPG Key ID: C35752984A323287
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ namespace TestCaseTracking {
m_runState = CompletedSuccessfully; m_runState = CompletedSuccessfully;
break; break;
case ExecutingChildren: case ExecutingChildren:
if( m_children.empty() || m_children.back()->isComplete() ) if( std::all_of(m_children.begin(), m_children.end(), [](ITrackerPtr const& t){ return t->isComplete(); }) )
m_runState = CompletedSuccessfully; m_runState = CompletedSuccessfully;
break; break;