From: Emil Velikov Date: Sat, 18 Jul 2026 09:11:13 +0000 (+0100) Subject: testsuite: remove UNIQ(testname) X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=ddd3de4442d7312ffbcc2ece99447a35b97fe84f;p=thirdparty%2Fkmod.git testsuite: remove UNIQ(testname) Stop making the test name variable (section entry) unique. This is no longer needed, plus we'll reshuffle some of the remaining names shortly. Signed-off-by: Emil Velikov Link: https://github.com/kmod-project/kmod/pull/450 Signed-off-by: Lucas De Marchi --- diff --git a/testsuite/testsuite.h b/testsuite/testsuite.h index 10dea9f..b23d631 100644 --- a/testsuite/testsuite.h +++ b/testsuite/testsuite.h @@ -129,9 +129,11 @@ int test_run(const struct test *t); } while (false) /* Test definitions */ -#define DEFINE_TEST_WITH_FUNC(_name, _func, ...) \ - _used_ _retain_ _section_("kmod_tests") _alignedptr_ static const struct test \ - UNIQ(s##_name) = { .name = #_name, .func = _func, ##__VA_ARGS__ } +#define DEFINE_TEST_WITH_FUNC(_name, _func, ...) \ + _used_ _retain_ _section_("kmod_tests") \ + _alignedptr_ static const struct test s##_name = { .name = #_name, \ + .func = _func, \ + ##__VA_ARGS__ } #define DEFINE_TEST(_name, ...) DEFINE_TEST_WITH_FUNC(_name, _name, __VA_ARGS__)