summaryrefslogtreecommitdiff
path: root/test/text-cache-crash.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2005-03-09 13:58:20 +0000
committerCarl Worth <cworth@cworth.org>2005-03-09 13:58:20 +0000
commitc3bd9b1b8d55d1128a7f70096b7135a80c6c9bed (patch)
tree73e97f72191c69ca8916ed439b11135f3e3d4d33 /test/text-cache-crash.c
parent80b2742952eeadc116bef8865f55ecb47b4a0a5e (diff)
downloadcairo-c3bd9b1b8d55d1128a7f70096b7135a80c6c9bed.tar.gz
Change the draw function under test to return a cairo_test_status_t so that it can indicate test failure even if there is no result image.
Diffstat (limited to 'test/text-cache-crash.c')
-rw-r--r--test/text-cache-crash.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/text-cache-crash.c b/test/text-cache-crash.c
index 6ac3245a6..abf205810 100644
--- a/test/text-cache-crash.c
+++ b/test/text-cache-crash.c
@@ -69,7 +69,7 @@ cairo_test_t test = {
};
#include <cairo.h>
-static void
+static cairo_test_status_t
draw (cairo_t *cr, int width, int height)
{
/* Once there was a bug that choked when selecting the same font twice. */
@@ -105,6 +105,8 @@ Aborted
cairo_scale_font (cr, 500);
cairo_show_text (cr, "hello");
*/
+
+ return CAIRO_TEST_SUCCESS;
}
int