diff options
author | Carl Worth <cworth@cworth.org> | 2005-03-09 13:58:20 +0000 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2005-03-09 13:58:20 +0000 |
commit | c3bd9b1b8d55d1128a7f70096b7135a80c6c9bed (patch) | |
tree | 73e97f72191c69ca8916ed439b11135f3e3d4d33 /test/fill-rule.c | |
parent | 80b2742952eeadc116bef8865f55ecb47b4a0a5e (diff) | |
download | cairo-c3bd9b1b8d55d1128a7f70096b7135a80c6c9bed.tar.gz |
Change the draw function under test to return a cairo_test_status_t so that it can indicate test failure even if there is no result image.
Diffstat (limited to 'test/fill-rule.c')
-rw-r--r-- | test/fill-rule.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/fill-rule.c b/test/fill-rule.c index 037a044ab..20a74eb93 100644 --- a/test/fill-rule.c +++ b/test/fill-rule.c @@ -97,7 +97,7 @@ big_star_path (cairo_t *cr) } /* Fill the same path twice, once with each fill rule */ -static void +static cairo_test_status_t draw (cairo_t *cr, int width, int height) { cairo_set_rgb_color (cr, 1, 0, 0); @@ -121,6 +121,8 @@ draw (cairo_t *cr, int width, int height) big_star_path (cr); cairo_set_fill_rule (cr, CAIRO_FILL_RULE_EVEN_ODD); cairo_fill (cr); + + return CAIRO_TEST_SUCCESS; } int |