mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-31 02:58:22 +02:00
tests/event-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
937a3ec541
commit
40c3096337
1 changed files with 9 additions and 2 deletions
|
|
@ -67,7 +67,8 @@ check_client_move(struct client *client, int x, int y)
|
|||
}
|
||||
}
|
||||
|
||||
TEST(test_surface_output)
|
||||
static enum test_result_code
|
||||
test_surface_output(struct wet_testsuite_data *suite_data)
|
||||
{
|
||||
struct client *client;
|
||||
int x, y;
|
||||
|
|
@ -129,7 +130,8 @@ static struct wl_buffer_listener buffer_listener = {
|
|||
buffer_release_handler
|
||||
};
|
||||
|
||||
TEST(buffer_release)
|
||||
static enum test_result_code
|
||||
buffer_release(struct wet_testsuite_data *suite_data)
|
||||
{
|
||||
struct client *client;
|
||||
struct wl_surface *surface;
|
||||
|
|
@ -194,3 +196,8 @@ TEST(buffer_release)
|
|||
|
||||
return RESULT_OK;
|
||||
}
|
||||
|
||||
DECLARE_TEST_LIST(
|
||||
TESTFN(test_surface_output),
|
||||
TESTFN(buffer_release),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue