diff options
author | Karl Tomlinson <karlt+@karlt.net> | 2010-07-17 10:47:42 +1200 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-07-17 11:30:35 +0100 |
commit | 6a5115901381fe9c81a8a311e267c2a00e2a1d04 (patch) | |
tree | 9696328b317e7a046960be23ea627168d8e7a92c /test/get-clip.c | |
parent | f2fa15680ec3ac95cb68d4957557f06561a7dc55 (diff) | |
download | cairo-6a5115901381fe9c81a8a311e267c2a00e2a1d04.tar.gz |
test: return CAIRO_TEST_FAILURE from get-clip preamble on failure
https://bugs.freedesktop.org/show_bug.cgi?id=29120
Diffstat (limited to 'test/get-clip.c')
-rw-r--r-- | test/get-clip.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/get-clip.c b/test/get-clip.c index 18472299a..9d6e79690 100644 --- a/test/get-clip.c +++ b/test/get-clip.c @@ -98,6 +98,7 @@ preamble (cairo_test_context_t *ctx) cairo_t *cr; cairo_rectangle_list_t *rectangle_list; const char *phase; + cairo_bool_t completed = 0; cairo_status_t status; surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, SIZE, SIZE); @@ -224,11 +225,15 @@ preamble (cairo_test_context_t *ctx) if (! check_unrepresentable (ctx, phase, rectangle_list)) goto FAIL; + completed = 1; FAIL: cairo_rectangle_list_destroy (rectangle_list); status = cairo_status (cr); cairo_destroy (cr); + if (!completed) + return CAIRO_TEST_FAILURE; + return cairo_test_status_from_status (ctx, status); } |