~ubuntu-branches/ubuntu/intrepid/cairo/intrepid-updates

« back to all changes in this revision

Viewing changes to test/ps-features.c

  • Committer: Bazaar Package Importer
  • Author(s): Fabien Tassin
  • Date: 2008-09-25 16:22:33 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20080925162233-btx61ymk181i7mcc
Tags: 1.7.6-0ubuntu1
* New upstream version. Most noticable changes are:
  - some API changes with especially the removal of
    cairo_font_options_set_lcd_filter and cairo_font_options_get_lcd_filter
  - xlib: Faster bookkeeping
  - PS: Fix gradients with non-constant alpha
  - Fix deadlock in user-font code
* debian/patches/00list: Remove 03_from_git_fix_lcd_filter_default.dpatch,
  add debian/patches/03_fix_ftbfs_withing_xcb.dpatch
* debian/libcairo2.symbols, debian/libcairo-directfb2.symbols: update
  list of symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
int
90
90
main (void)
91
91
{
 
92
    cairo_test_context_t ctx;
92
93
    cairo_surface_t *surface;
93
94
    cairo_t *cr;
94
95
    cairo_status_t status;
96
97
    size_t i;
97
98
    char dsc[255];
98
99
 
99
 
    cairo_test_init ("ps-features");
 
100
    cairo_test_init (&ctx, "ps-features");
 
101
    if (! cairo_test_is_target_enabled (&ctx, "ps")) {
 
102
        cairo_test_fini (&ctx);
 
103
        return CAIRO_TEST_UNTESTED;
 
104
    }
100
105
 
101
106
    filename = "ps-features.ps";
102
107
 
144
149
    cairo_surface_destroy (surface);
145
150
 
146
151
    if (status) {
147
 
        cairo_test_log ("Failed to create ps surface for file %s: %s\n",
 
152
        cairo_test_log (&ctx, "Failed to create ps surface for file %s: %s\n",
148
153
                        filename, cairo_status_to_string (status));
149
154
        return CAIRO_TEST_FAILURE;
150
155
    }
151
156
 
152
157
    printf ("ps-features: Please check %s to ensure it looks/prints correctly.\n", filename);
153
158
 
154
 
    cairo_test_fini ();
 
159
    cairo_test_fini (&ctx);
155
160
 
156
161
    return CAIRO_TEST_SUCCESS;
157
162
}