tests/safe-signal-test: migrate to DECLARE_TEST_LIST API

Replace TEST() macros with explicit static functions and
DECLARE_TEST_LIST() registration for better type safety and to
prepare for removing the custom ELF section.

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
Pekka Paalanen 2026-05-26 14:52:59 +00:00
parent 02f042b5c3
commit 22b1a7003d

View file

@ -76,7 +76,8 @@ add_destroy_listener(struct test_surface_state *st)
&st->surface_destroy_listener);
}
TEST(real_usecase_standalone)
static enum test_result_code
real_usecase_standalone(struct wet_testsuite_data *suite_data)
{
struct test_surface_state *st, *st_new;
@ -91,3 +92,7 @@ TEST(real_usecase_standalone)
return RESULT_OK;
}
DECLARE_TEST_LIST(
TESTFN(real_usecase_standalone),
);