Skip to content
Snippets Groups Projects
Commit 4b4add53 authored by Timo Teräs's avatar Timo Teräs
Browse files

test: fix unit test registration function to be unique

parent 9428e346
No related branches found
No related tags found
No related merge requests found
...@@ -9,5 +9,5 @@ void test_register(const char *, UnitTestFunction); ...@@ -9,5 +9,5 @@ void test_register(const char *, UnitTestFunction);
#define APK_TEST(test_name) \ #define APK_TEST(test_name) \
static void test_name(void **); \ static void test_name(void **); \
__attribute__((constructor)) static void _test_register_##x(void) { test_register(#test_name, test_name); } \ __attribute__((constructor)) static void _test_register_##test_name(void) { test_register(#test_name, test_name); } \
static void test_name(void **) static void test_name(void **)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment