summaryrefslogtreecommitdiff
path: root/test/cairo-test.h
diff options
context:
space:
mode:
authorM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2009-05-24 16:19:31 +0300
committerM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2009-06-18 15:39:16 +0100
commitcdd27a8d4cc3486867cff4ce81bb4e064eb74d58 (patch)
tree6f37933d4b12b08c164210851e8b7b8dd424d68a /test/cairo-test.h
parent46eb56a99f72b364e3eabe46f9b2995ed0696bd3 (diff)
downloadcairo-cdd27a8d4cc3486867cff4ce81bb4e064eb74d58.tar.gz
[test] Never use gcc __attribute__ magic for constructors.
The configure test for __attribute__((constructor)) succeeds when compiling with Sun Studio 12 on OpenSolaris but the attribute is just ignored and has no actual effect. This causes the test suite to not run any tests at all. With this patch we revert to always using make-cairo-test-constructors.pl.
Diffstat (limited to 'test/cairo-test.h')
-rw-r--r--test/cairo-test.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/test/cairo-test.h b/test/cairo-test.h
index afdc88891..b16f340cf 100644
--- a/test/cairo-test.h
+++ b/test/cairo-test.h
@@ -133,19 +133,6 @@ struct _cairo_test {
* one backend that is tested and if all tested backend pass according
* to the four criteria above.
*/
-#if CAIRO_HAS_CONSTRUCTOR_ATTRIBUTE
-#define CAIRO_TEST(name, description, keywords, requirements, width, height, preamble, draw) \
-static void __attribute__((constructor)) _register_##name (void) \
-{\
- static const cairo_test_t test = { \
- #name, description, \
- keywords, requirements, \
- width, height, \
- preamble, draw \
- }; \
- cairo_test_register (&test); \
-}
-#else
#define CAIRO_TEST(name, description, keywords, requirements, width, height, preamble, draw) \
void _register_##name (void); \
void _register_##name (void) { \
@@ -157,7 +144,6 @@ void _register_##name (void) { \
}; \
cairo_test_register (&test); \
}
-#endif
void
cairo_test_register (const cairo_test_t *test);