diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-08-12 13:33:04 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2008-08-13 21:55:19 +0100 |
commit | d56ea9cc879650db0ad2e6b05e483f30f9f21566 (patch) | |
tree | f58334bf9ca6d3eef3ef0e7f5813c8b211f3ddac /test/multi-page.c | |
parent | f85a4aec1f94f8fbd8e4db770ff1f70c3286fc90 (diff) | |
download | cairo-d56ea9cc879650db0ad2e6b05e483f30f9f21566.tar.gz |
[test] Set CAIRO_TEST_UNTESTED to 77
77 is the magic exit code used by automake to indicate a skipped test, so
by using it we can get a slightly more informative test log.
Diffstat (limited to 'test/multi-page.c')
-rw-r--r-- | test/multi-page.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/test/multi-page.c b/test/multi-page.c index bf33dad8b..4519437a7 100644 --- a/test/multi-page.c +++ b/test/multi-page.c @@ -134,14 +134,16 @@ main (void) cairo_surface_t *surface; cairo_status_t status; const char *filename; - cairo_test_status_t result = CAIRO_TEST_SUCCESS; + cairo_test_status_t result = CAIRO_TEST_UNTESTED; cairo_test_init (&ctx, "multi-page"); #if CAIRO_HAS_PS_SURFACE if (cairo_test_is_target_enabled (&ctx, "ps")) { - filename = "multi-page.ps"; + if (result == CAIRO_TEST_UNTESTED) + result = CAIRO_TEST_SUCCESS; + filename = "multi-page.ps"; surface = cairo_ps_surface_create (filename, WIDTH_IN_POINTS, HEIGHT_IN_POINTS); status = cairo_surface_status (surface); @@ -161,8 +163,10 @@ main (void) #if CAIRO_HAS_PDF_SURFACE if (cairo_test_is_target_enabled (&ctx, "pdf")) { - filename = "multi-page.pdf"; + if (result == CAIRO_TEST_UNTESTED) + result = CAIRO_TEST_SUCCESS; + filename = "multi-page.pdf"; surface = cairo_pdf_surface_create (filename, WIDTH_IN_POINTS, HEIGHT_IN_POINTS); status = cairo_surface_status (surface); |