[VPU][Tests] Fix sanitizer issue in unit tests (#630)

This commit is contained in:
Andrew Bakalin 2020-05-28 18:01:56 +03:00 committed by GitHub
parent 23f41213bb
commit 77162bf8ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -243,6 +243,10 @@ bool checkExecutionOrder(const Model& model, const std::vector<int>& execOrder)
auto it = execOrder.begin();
for (const auto& stage : model->getStages()) {
if (it == execOrder.end()) {
return true;
}
if (stage->id() == *it) {
++it;
}