summaryrefslogtreecommitdiff
path: root/test/scaled-font-zero-matrix.c
diff options
context:
space:
mode:
authorM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2010-02-21 01:45:30 +0200
committerM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2010-02-25 14:20:27 +0200
commitdcf897967d54f579c737bbcc10af7fa295b586e5 (patch)
tree8d14bdb76141e4453bf89e13f90491c45eaac921 /test/scaled-font-zero-matrix.c
parent8bb06915ed6628c6d8978b6c2fec474bbf08d7e9 (diff)
downloadcairo-dcf897967d54f579c737bbcc10af7fa295b586e5.tar.gz
test: Fix a wrongly typed return value in scaled-font-zero-matrix.
The test was returning a cairo_status_t, but should be returning a cairo_test_status_t instead. When the test failed it was being reported as having crashed, rather than merely failed, because the enum value of CAIRO_TEST_CRASHED happened to be same as the cairo_status_t value of the cairo context at the end of the failing test.
Diffstat (limited to 'test/scaled-font-zero-matrix.c')
-rw-r--r--test/scaled-font-zero-matrix.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/scaled-font-zero-matrix.c b/test/scaled-font-zero-matrix.c
index bd5c37778..d4f79a669 100644
--- a/test/scaled-font-zero-matrix.c
+++ b/test/scaled-font-zero-matrix.c
@@ -50,7 +50,9 @@ draw (cairo_t *cr, int width, int height)
cairo_show_text (cr, "Hello");
cairo_scaled_font_destroy (scaled_font);
cairo_font_options_destroy (font_options);
- return cairo_status (cr);
+
+ return cairo_test_status_from_status (cairo_test_get_context (cr),
+ cairo_status(cr));
}
CAIRO_TEST (scaled_font_zero_matrix,