From abb03c7c9d32bebbb9ea67eb2c35a2ccb2088486 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 19 Mar 2026 11:44:40 +0100 Subject: [PATCH] tests: drop _weak_ from the SYSTEMD_TEST_TABLE definition This will cause test binaries that reference SYSTEMD_TEST_TABLE, e.g. by trying to iterate over the test list, to fail if no tests are defined. I think this is the correct thing to do, as the lack of tests indicates some kind of mistake. --- src/shared/tests.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/tests.h b/src/shared/tests.h index ae57cab386..607d62fe6a 100644 --- a/src/shared/tests.h +++ b/src/shared/tests.h @@ -110,8 +110,8 @@ typedef struct TestFunc { ##__VA_ARGS__ \ } -extern const TestFunc _weak_ __start_SYSTEMD_TEST_TABLE[]; -extern const TestFunc _weak_ __stop_SYSTEMD_TEST_TABLE[]; +extern const TestFunc __start_SYSTEMD_TEST_TABLE[]; +extern const TestFunc __stop_SYSTEMD_TEST_TABLE[]; #define TEST(name, ...) \ static void test_##name(void); \