[test/toy-font-face] Use cairo_test_init/fini().

Minor step to harmonise the test with the rest of the suite.
This commit is contained in:
Chris Wilson 2008-08-17 17:33:29 +01:00
parent 37bca38772
commit c745a622db

View file

@ -28,22 +28,22 @@
#include "config.h"
#endif
#include "cairo-test.h"
#include <cairo.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#if HAVE_FCFINI
#include <fontconfig/fontconfig.h>
#endif
int
main (void)
{
cairo_test_context_t ctx;
cairo_t *cr;
cairo_surface_t *surface;
cairo_font_face_t *font_face;
cairo_test_init (&ctx, "toy-font-face");
surface = cairo_image_surface_create (CAIRO_FORMAT_RGB24, 0, 0);
cr = cairo_create (surface);
cairo_surface_destroy (surface);
@ -120,10 +120,7 @@ main (void)
cairo_destroy (cr);
cairo_debug_reset_static_data ();
#if HAVE_FCFINI
FcFini ();
#endif
cairo_test_fini (&ctx);
return 0;
return CAIRO_TEST_SUCCESS;
}