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.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2026-03-20 09:59:58 +01:00
committed by Zbigniew Jędrzejewski-Szmek
parent 4268e95fb9
commit abb03c7c9d
+2 -2
View File
@@ -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); \