mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-30 15:18:19 +02:00
tests/surface-global-test: migrate to DECLARE_TEST_LIST API
Replace PLUGIN_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
ba7d8fc3ca
commit
1da7ba4ad5
1 changed files with 7 additions and 1 deletions
|
|
@ -45,7 +45,9 @@ fixture_setup(struct weston_test_harness *harness)
|
|||
}
|
||||
DECLARE_FIXTURE_SETUP(fixture_setup);
|
||||
|
||||
PLUGIN_TEST(surface_to_from_global)
|
||||
static enum test_result_code
|
||||
surface_to_from_global(struct wet_testsuite_data *suite_data,
|
||||
struct weston_compositor *compositor)
|
||||
{
|
||||
/* struct weston_compositor *compositor; */
|
||||
struct weston_surface *surface;
|
||||
|
|
@ -114,3 +116,7 @@ PLUGIN_TEST(surface_to_from_global)
|
|||
|
||||
return RESULT_OK;
|
||||
}
|
||||
|
||||
DECLARE_TEST_LIST(
|
||||
TESTFN_PLUGIN(surface_to_from_global),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue