tests: preserve ivi runner section

Everywhere else where use this trick, we also have 'used' in the
attributes, except here. Make this consistent.

Fixes: https://gitlab.freedesktop.org/wayland/weston/-/issues/517

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
Pekka Paalanen 2022-03-04 12:15:27 +02:00 committed by Marius Vlad
parent 78c94d0719
commit 5ba7ae2937

View File

@ -53,7 +53,7 @@ struct runner_test {
static void runner_func_##name(struct test_context *); \
\
const struct runner_test runner_test_##name \
__attribute__ ((section ("plugin_test_section"))) = \
__attribute__ ((used, section ("plugin_test_section"))) = \
{ \
#name, runner_func_##name \
}; \