Code Review
/
staging
/
windowmanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
3fc0737
)
app: resturn Err() on failed IDs test
author
Marcus Fritzsch
<marcus_fritzsch@mentor.com>
Thu, 27 Jul 2017 14:01:41 +0000
(16:01 +0200)
committer
Marcus Fritzsch
<marcus_fritzsch@mentor.com>
Tue, 8 Aug 2017 15:24:00 +0000
(17:24 +0200)
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
src/app.cpp
patch
|
blob
|
history
diff --git
a/src/app.cpp
b/src/app.cpp
index
8a3abec
..
ebbed02
100644
(file)
--- 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!");
+ }
}
}