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/xlib-expose-event.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/xlib-expose-event.c')
-rw-r--r-- | test/xlib-expose-event.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/test/xlib-expose-event.c b/test/xlib-expose-event.c index 0dbddac1f..bf320dabb 100644 --- a/test/xlib-expose-event.c +++ b/test/xlib-expose-event.c @@ -210,13 +210,11 @@ main (void) cairo_surface_t *surface; cairo_rectangle_t region[4]; int i, j; - cairo_test_status_t result = CAIRO_TEST_SUCCESS; + cairo_test_status_t result = CAIRO_TEST_UNTESTED; cairo_test_init (&ctx, "xlib-expose-event"); - if (! cairo_test_is_target_enabled (&ctx, "xlib")) { - cairo_test_fini (&ctx); - return CAIRO_TEST_UNTESTED; - } + if (! cairo_test_is_target_enabled (&ctx, "xlib")) + goto CLEANUP_TEST; dpy = XOpenDisplay (NULL); if (dpy == NULL) { @@ -274,8 +272,6 @@ main (void) XCloseDisplay (dpy); CLEANUP_TEST: - cairo_debug_reset_static_data (); - cairo_test_fini (&ctx); return result; |