projects
/
profile
/
ivi
/
wayland-ivi-extension.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: check roundtrip() result in Test ctor
[profile/ivi/wayland-ivi-extension.git]
/
ivi-layermanagement-api
/
test
/
TestBase.cpp
diff --git
a/ivi-layermanagement-api/test/TestBase.cpp
b/ivi-layermanagement-api/test/TestBase.cpp
index
da005f5
..
de521d5
100644
(file)
--- a/
ivi-layermanagement-api/test/TestBase.cpp
+++ b/
ivi-layermanagement-api/test/TestBase.cpp
@@
-28,8
+28,11
@@
TestBase::TestBase()
};
wl_registry_add_listener(wlRegistry, ®istry_listener, &wlCompositor);
};
wl_registry_add_listener(wlRegistry, ®istry_listener, &wlCompositor);
- wl_display_dispatch(wlDisplay);
- wl_display_roundtrip(wlDisplay);
+
+ if (wl_display_roundtrip(wlDisplay) == -1 || wl_display_roundtrip(wlDisplay) == -1)
+ {
+ throw std::runtime_error("wl_display error");
+ }
wlSurfaces.reserve(10);
for (int i = 0; i < wlSurfaces.capacity(); ++i)
wlSurfaces.reserve(10);
for (int i = 0; i < wlSurfaces.capacity(); ++i)