diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-05-03 20:39:34 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-05-04 13:28:36 +0100 |
commit | 2c68fcace4ad47ad09e9699e45afb514be1381f9 (patch) | |
tree | 9fd206f22f2d3a3ec5176c73cdc220fdee0ae7a6 /test/cairo-test.h | |
parent | 7002b824729885a9d579f677ecc665b620847480 (diff) | |
download | cairo-2c68fcace4ad47ad09e9699e45afb514be1381f9.tar.gz |
test: Embed the list pointer into cairo_test_t
Reduce the amount of output printed by leak-detectors when a test
crashes.
Diffstat (limited to 'test/cairo-test.h')
-rw-r--r-- | test/cairo-test.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/cairo-test.h b/test/cairo-test.h index bf10eb700..53db80b69 100644 --- a/test/cairo-test.h +++ b/test/cairo-test.h @@ -138,6 +138,7 @@ typedef cairo_test_status_t (cairo_test_draw_function_t) (cairo_t *cr, int width, int height); struct _cairo_test { + struct _cairo_test *next; const char *name; const char *description; const char *keywords; @@ -177,8 +178,8 @@ struct _cairo_test { #define CAIRO_TEST(name, description, keywords, requirements, width, height, preamble, draw) \ void _register_##name (void); \ void _register_##name (void) { \ - static const cairo_test_t test = { \ - #name, description, \ + static cairo_test_t test = { \ + NULL, #name, description, \ keywords, requirements, \ width, height, \ preamble, draw \ @@ -187,7 +188,7 @@ void _register_##name (void) { \ } void -cairo_test_register (const cairo_test_t *test); +cairo_test_register (cairo_test_t *test); /* The full context for the test. * For ordinary tests (using the CAIRO_TEST()->draw interface) the context |