tests/bad-buffer-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:48:21 +00:00
parent ab00769756
commit f4d7ff3c20

View file

@ -168,7 +168,8 @@ create_bad_shm_buffer(struct client *client, int width, int height)
return buffer;
}
TEST(test_truncated_shm_file)
static enum test_result_code
test_truncated_shm_file(struct wet_testsuite_data *suite_data)
{
struct client *client;
struct wl_buffer *bad_buffer;
@ -197,3 +198,7 @@ TEST(test_truncated_shm_file)
return RESULT_OK;
}
DECLARE_TEST_LIST(
TESTFN(test_truncated_shm_file),
);