summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2007-05-08 20:25:21 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2007-05-08 22:04:41 +0100
commit43645eb486da1af91b3264af6c84ac18a1eddcaa (patch)
tree917eeb1ff1d2d8cceb9e65482a70e8788b5cd009 /test
parent21c6643b09c771454f913b444b6b040aaaacd3a8 (diff)
[test/fallback-resolution] Cleanup after test failure
Be valgrind clean even for test failures.
Diffstat (limited to 'test')
-rw-r--r--test/fallback-resolution.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/fallback-resolution.c b/test/fallback-resolution.c
index 37fd59199..10ed9646e 100644
--- a/test/fallback-resolution.c
+++ b/test/fallback-resolution.c
@@ -88,6 +88,7 @@ main (void)
cairo_surface_t *surface = NULL;
cairo_t *cr;
cairo_status_t status;
+ cairo_test_status_t ret = CAIRO_TEST_SUCCESS;
double ppi[] = { 600., 300., 150., 75., 37.5 };
backend_t backend;
int page, num_pages;
@@ -138,7 +139,8 @@ main (void)
cairo_test_log ("Failed to create pdf surface for file %s: %s\n",
backend_filename[backend],
cairo_status_to_string (status));
- return CAIRO_TEST_FAILURE;
+ ret = CAIRO_TEST_FAILURE;
+ break;
}
printf ("fallback-resolution: Please check %s to ensure it looks correct.\n",
@@ -147,5 +149,5 @@ main (void)
cairo_test_fini ();
- return CAIRO_TEST_SUCCESS;
+ return ret;
}