diff options
author | Benjamin Otte <otte@redhat.com> | 2010-04-28 12:54:54 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-04-28 13:15:09 +0200 |
commit | 2ce1afa3222145e9c4f8c74a0034e0da9e93b70b (patch) | |
tree | 64a86d0ee0c9bdfbd1821cafaf1b36efa6419cb4 /test/xlib-surface.c | |
parent | 2a91d425088cb8a93de76f2f91f32a7f23f0aecd (diff) | |
download | cairo-2ce1afa3222145e9c4f8c74a0034e0da9e93b70b.tar.gz |
test-suite: add image_diff_is_failure() function
This cleans the code and fixes a boolean logic error where this check
was done manually.
Diffstat (limited to 'test/xlib-surface.c')
-rw-r--r-- | test/xlib-surface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/xlib-surface.c b/test/xlib-surface.c index a7ff02085..be44b148b 100644 --- a/test/xlib-surface.c +++ b/test/xlib-surface.c @@ -250,9 +250,9 @@ do_test (const cairo_test_context_t *ctx, use_pixmap ? " " : (offscreen ? ", offscreen" : ", onscreen"), - result.pixels_changed ? "FAIL" : "PASS"); + image_diff_is_failure (&result, 0) ? "FAIL" : "PASS"); - if (result.pixels_changed) + if (image_diff_is_failure (&result, 0)) return CAIRO_TEST_FAILURE; else return CAIRO_TEST_SUCCESS; |