From 4b4add5326a87af26d8fa9c8ae43ca93fcff4bcc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timo=20Ter=C3=A4s?= <timo.teras@iki.fi>
Date: Wed, 27 Nov 2024 09:44:14 +0200
Subject: [PATCH] test: fix unit test registration function to be unique

---
 test/unit/apk_test.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/unit/apk_test.h b/test/unit/apk_test.h
index 62fc151b..4dc30818 100644
--- a/test/unit/apk_test.h
+++ b/test/unit/apk_test.h
@@ -9,5 +9,5 @@ void test_register(const char *, UnitTestFunction);
 
 #define APK_TEST(test_name) \
 	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 **)
-- 
GitLab