summaryrefslogtreecommitdiff
path: root/test/xlib-expose-event.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2008-08-12 13:33:04 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2008-08-13 21:55:19 +0100
commitd56ea9cc879650db0ad2e6b05e483f30f9f21566 (patch)
treef58334bf9ca6d3eef3ef0e7f5813c8b211f3ddac /test/xlib-expose-event.c
parentf85a4aec1f94f8fbd8e4db770ff1f70c3286fc90 (diff)
downloadcairo-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.c10
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;