mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-06-01 10:28:22 +02:00
tests/color-effects-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
aaec5247ef
commit
47410163b0
1 changed files with 6 additions and 1 deletions
|
|
@ -208,7 +208,8 @@ fixture_setup(struct weston_test_harness *harness, const struct setup_args *arg)
|
|||
}
|
||||
DECLARE_FIXTURE_SETUP_WITH_ARG(fixture_setup, my_setup_args, meta);
|
||||
|
||||
TEST(color_effects)
|
||||
static enum test_result_code
|
||||
color_effects(struct wet_testsuite_data *suite_data)
|
||||
{
|
||||
int seq_no = get_test_fixture_index();
|
||||
const struct setup_args *arg = &my_setup_args[seq_no];
|
||||
|
|
@ -272,3 +273,7 @@ TEST(color_effects)
|
|||
|
||||
return res ? RESULT_OK : RESULT_FAIL;
|
||||
}
|
||||
|
||||
DECLARE_TEST_LIST(
|
||||
TESTFN(color_effects),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue