From: Zbigniew Jędrzejewski-Szmek Date: Thu, 19 Mar 2026 10:44:40 +0000 (+0100) Subject: tests: drop _weak_ from the SYSTEMD_TEST_TABLE definition X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abb03c7c9d32bebbb9ea67eb2c35a2ccb2088486;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/shared/tests.h b/src/shared/tests.h index ae57cab3863..607d62fe6aa 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); \