diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-07-13 14:31:43 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-07-13 15:19:51 +0100 |
commit | 655a4dbc36d95ce4a82cbc13aa9e2002b41fa4de (patch) | |
tree | 0e825759930fe4b6161315d5a6fb8db004a2d0b9 /test/path-precision.c | |
parent | a81cf14bd6de545e9108f5c24c59e55026df86de (diff) | |
download | cairo-655a4dbc36d95ce4a82cbc13aa9e2002b41fa4de.tar.gz |
[test] Track XFAIL using expected results stored as xfail.png
Instead of tagging the sources, which is insensitive to changes, track the
known failure modes by recording the current fail as an xfail.png
reference. (We also introduce a new.png to track a fresh error, so that
they are not lost in the noise of the old XFAILs and hopefully do not
cause everyone to fret).
As we have removed the XFAIL tagging we find, surprise surprise, that some
tests are now working -- so review all the reference images (as also some
.ref.png now should be .xfail.png).
Note: I've only checked image,pdf,ps,svg. The test surfaces report some
failures that probably need to addressed in source. I've not correct the
changes for win32 and quartz. Nor fixed up the experimental backends.
Diffstat (limited to 'test/path-precision.c')
-rw-r--r-- | test/path-precision.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/path-precision.c b/test/path-precision.c index b53710214..3261fb433 100644 --- a/test/path-precision.c +++ b/test/path-precision.c @@ -27,6 +27,9 @@ #include "cairo-test.h" +/* we know that this is an inherent limitation in cairo */ +#define FAIL CAIRO_TEST_XFAILURE + /* Test the idempotency of path construction and copying */ static cairo_test_status_t @@ -80,7 +83,7 @@ draw (cairo_t *cr, int width, int height) "Paths differ in header type after %d operations.\n" "Expected path operation %d, found %d.\n", n, src->header.type, dst->header.type); - result = CAIRO_TEST_FAILURE; + result = FAIL; break; } @@ -91,7 +94,7 @@ draw (cairo_t *cr, int width, int height) n, src[1].point.x, src[1].point.y, dst[1].point.x, dst[1].point.y); - result = CAIRO_TEST_FAILURE; + result = FAIL; break; } } @@ -102,7 +105,7 @@ draw (cairo_t *cr, int width, int height) CAIRO_TEST (path_precision, "Check that the path append/copy is idempotent.", - "XFAIL api", /* keywords */ + "api", /* keywords */ NULL, /* requirements */ 0, 0, NULL, draw) |