summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2013-10-09 13:37:43 -0700
committerKristian Høgsberg <krh@bitplanet.net>2013-10-10 16:50:18 -0700
commit3b7d841b7e3107d720324444a117905e04925500 (patch)
treec11ee89101298566b56dd235275f2154568a17ff /tests
parente8344e3dbcb87770c472d1473f90a7ecaffd315e (diff)
tests: Assert surface creation succeeds
Diffstat (limited to 'tests')
-rw-r--r--tests/surface-global-test.c1
-rw-r--r--tests/surface-test.c1
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);