From: Marcus Fritzsch Date: Thu, 27 Jul 2017 14:01:41 +0000 (+0200) Subject: app: resturn Err() on failed IDs test X-Git-Tag: 4.99.1~229 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=c4acee91aff1594901e2a201a6baccc650fad4a8;p=staging%2Fwindowmanager.git app: resturn Err() on failed IDs test Signed-off-by: Marcus Fritzsch --- diff --git a/src/app.cpp b/src/app.cpp index 8a3abec..ebbed02 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -93,10 +93,9 @@ struct result }); for (auto sid : tests) { - DB("layer id for surface " - << sid.first << " is " - << i.get_layer_for_surface(sid.first).value_or(-1) << " expected " - << sid.second); + if (i.get_layer_for_surface(sid.first).value_or(-1) != sid.second) { + return Err("ID Map embedded test failed!"); + } } }