mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-30 14:08:21 +02:00
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:
parent
ab00769756
commit
f4d7ff3c20
1 changed files with 6 additions and 1 deletions
|
|
@ -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),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue