[cairo] Tessellator regressions

Behdad Esfahbod behdad at behdad.org
Tue Dec 5 22:34:12 PST 2006

On Tue, 2006-12-05 at 20:30 -0500, Carl Worth wrote:
> We actually do have a mechanism to skip some tests for particular
> backends. The mechanism is rather obscure, though, so don't feel bad
> you didn't find it. A backend's create_<foo>_surface function, (which
> exists in boilerplate/cairo-boilerplate.c), receives the name of the
> test being performed. And if this function returns NULL then the test
> just gets an UNTESTED status rather than a failure, (or even an
> expected failure). 

I've wanted to move that exclusion mechanism to individual tests instead
of the boilerplate for too long.  The test can detect the surface type
using cairo_surface_get_type() and reutnr UNSUPPORTED...  It probably
can use a helper function cairo_test_surface_is_vector or something...

In the case of this point-sampling test, seems like better written as a
test not using the cairo_test() framework.  Grep for cairo_test_init in
tests/*.c and you'll get all such tests.


"Those who would give up Essential Liberty to purchase a little
 Temporary Safety, deserve neither Liberty nor Safety."
        -- Benjamin Franklin, 1759

More information about the cairo mailing list