Ignore output of PS tests.

Fix the PS tests to work again, (track change in create_surface interface).
This commit is contained in:
Carl Worth 2005-10-08 11:58:20 +00:00
parent 24dce0dbb3
commit 94dece56a5
3 changed files with 16 additions and 2 deletions

View file

@ -1,3 +1,10 @@
2005-10-08 Carl Worth <cworth@cworth.org>
* 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 <cworth@cworth.org>
* configure.in: Enable PS and PDF backends by default, (in

View file

@ -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

View file

@ -30,6 +30,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <assert.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#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);