~ubuntu-branches/ubuntu/hardy/libgdiplus/hardy

« back to all changes in this revision

Viewing changes to cairo/test/nil-surface.c

  • Committer: Bazaar Package Importer
  • Author(s): Emilio Pozuelo Monfort
  • Date: 2007-12-18 13:08:10 UTC
  • mfrom: (1.1.15 upstream)
  • Revision ID: james.westby@ubuntu.com-20071218130810-hlmitxfddf6h511j
Tags: 1.2.6-1ubuntu1
* Sync with Debian:
  - debian/control:
    + Add lpia and sparc to the architectures. We support them.
    + Change Maintainer to Ubuntu Mono Team.

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
        cairo_test_log ("Error: Received status of \"%s\" rather than expected \"%s\"\n",
75
75
                        cairo_status_to_string (cairo_status (cr2)),
76
76
                        cairo_status_to_string (CAIRO_STATUS_FILE_NOT_FOUND));
 
77
        cairo_destroy (cr2);
77
78
        return CAIRO_TEST_FAILURE;
78
79
    }
79
80
 
98
99
        cairo_test_log ("Error: Received status of \"%s\" rather than expected \"%s\"\n",
99
100
                        cairo_status_to_string (cairo_status (cr2)),
100
101
                        cairo_status_to_string (CAIRO_STATUS_NULL_POINTER));
 
102
        cairo_destroy (cr2);
101
103
        return CAIRO_TEST_FAILURE;
102
104
    }
103
105
 
128
130
        cairo_test_log ("Error: Received status of \"%s\" rather than expected \"%s\"\n",
129
131
                        cairo_status_to_string (cairo_status (cr2)),
130
132
                        cairo_status_to_string (CAIRO_STATUS_INVALID_RESTORE));
 
133
        cairo_destroy (cr2);
131
134
        return CAIRO_TEST_FAILURE;
132
135
    }
133
136
 
145
148
        cairo_test_log ("Error: Received status of \"%s\" rather than expected \"%s\"\n",
146
149
                        cairo_status_to_string (cairo_status (cr2)),
147
150
                        cairo_status_to_string (CAIRO_STATUS_NULL_POINTER));
 
151
        cairo_destroy (cr2);
148
152
        return CAIRO_TEST_FAILURE;
149
153
    }
150
154
 
151
155
    /* Test that get_target returns something valid */
152
156
    if (cairo_get_target (cr2) == NULL) {
153
157
        cairo_test_log ("Error: cairo_get_target() returned NULL\n");
 
158
        cairo_destroy (cr2);
154
159
        return CAIRO_TEST_FAILURE;
155
160
    }
156
161