diff options
author | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-07-27 16:01:41 +0200 |
---|---|---|
committer | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-08-08 17:24:00 +0200 |
commit | c4acee91aff1594901e2a201a6baccc650fad4a8 (patch) | |
tree | b24c922afac47008819713e35c5ab906864ce661 /src | |
parent | 3fc0737dda213a7dc1e769523434d06902483426 (diff) |
app: resturn Err() on failed IDs test
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/app.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
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<surface_id_to_layer_map> }); 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<surface_id_to_layer_map>("ID Map embedded test failed!"); + } } } |