diff --git a/ChangeLog b/ChangeLog index 92c8eaa09..4e1f94d7b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-10-08 Carl Worth + + * test/.cvsignore: Ignore output of PS tests. + + * test/cairo-test.c: (create_ps_surface): Fix the PS tests to work + again, (track change in create_surface interface). + 2005-10-08 Carl Worth * configure.in: Enable PS and PDF backends by default, (in diff --git a/test/.cvsignore b/test/.cvsignore index 6e5d700ef..fa5544c50 100644 --- a/test/.cvsignore +++ b/test/.cvsignore @@ -73,6 +73,8 @@ xlib-surface *-image-out.png *-image-argb32-out.png *-image-rgb24-out.png +*-ps-rgb24-out.png +*-ps-rgb24-out.ps *-xcb-out.png *-xcb-argb32-out.png *-xcb-rgb24-out.png diff --git a/test/cairo-test.c b/test/cairo-test.c index adca378cf..2136dde29 100644 --- a/test/cairo-test.c +++ b/test/cairo-test.c @@ -30,6 +30,7 @@ #include #include #include +#include #ifdef HAVE_UNISTD_H #include #endif @@ -484,19 +485,23 @@ typedef struct _ps_target_closure } ps_target_closure_t; static cairo_surface_t * -create_ps_surface (cairo_test_t *test, void **closure) +create_ps_surface (cairo_test_t *test, cairo_format_t format, + void **closure) { int width = test->width; int height = test->height; ps_target_closure_t *ptc; cairo_surface_t *surface; + /* This is the only format supported by the PS surface backend. */ + assert (format == CAIRO_FORMAT_RGB24); + *closure = ptc = xmalloc (sizeof (ps_target_closure_t)); ptc->width = width; ptc->height = height; - xasprintf (&ptc->filename, "%s-%s%s", test->name, "ps", ".ps"); + xasprintf (&ptc->filename, "%s-%s%s", test->name, "ps-rgb24-out", ".ps"); surface = cairo_ps_surface_create (ptc->filename, width, height); if (!surface) { free (ptc);