diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2013-10-09 13:37:43 -0700 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-10-10 16:50:18 -0700 |
commit | 3b7d841b7e3107d720324444a117905e04925500 (patch) | |
tree | c11ee89101298566b56dd235275f2154568a17ff /tests | |
parent | e8344e3dbcb87770c472d1473f90a7ecaffd315e (diff) |
tests: Assert surface creation succeeds
Diffstat (limited to 'tests')
-rw-r--r-- | tests/surface-global-test.c | 1 | ||||
-rw-r--r-- | tests/surface-test.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/surface-global-test.c b/tests/surface-global-test.c index 220cb514..04b64d6a 100644 --- a/tests/surface-global-test.c +++ b/tests/surface-global-test.c @@ -34,6 +34,7 @@ surface_to_from_global(void *data) int32_t ix, iy; surface = weston_surface_create(compositor); + assert(surface); weston_surface_configure(surface, 5, 10, 50, 50); weston_surface_update_transform(surface); diff --git a/tests/surface-test.c b/tests/surface-test.c index 73ee23c7..e8af2ed7 100644 --- a/tests/surface-test.c +++ b/tests/surface-test.c @@ -34,6 +34,7 @@ surface_transform(void *data) float x, y; surface = weston_surface_create(compositor); + assert(surface); weston_surface_configure(surface, 100, 100, 200, 200); weston_surface_update_transform(surface); weston_surface_to_global_float(surface, 20, 20, &x, &y); |