diff options
author | Simon Glass <sjg@chromium.org> | 2021-03-08 03:35:10 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-03-12 17:57:30 +0300 |
commit | a7a98755b888254cbc1857c567ce898a8e105e0f (patch) | |
tree | 0edc3980d46d0e17f31661064c58b72873d2fa67 /test/overlay/cmd_ut_overlay.c | |
parent | 5c1cf4d2dab12a8f5b4a49dc2f06f582db69c1ef (diff) | |
download | u-boot-a7a98755b888254cbc1857c567ce898a8e105e0f.tar.xz |
test: Add a macros for finding tests in linker_lists
At present we use the linker list directly. This is not very friendly, so
add a helpful macro instead. This will also allow us to change the naming
later without updating this code.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/overlay/cmd_ut_overlay.c')
-rw-r--r-- | test/overlay/cmd_ut_overlay.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/overlay/cmd_ut_overlay.c b/test/overlay/cmd_ut_overlay.c index c001fb183f..56a3df1713 100644 --- a/test/overlay/cmd_ut_overlay.c +++ b/test/overlay/cmd_ut_overlay.c @@ -213,9 +213,8 @@ OVERLAY_TEST(fdt_overlay_stacked, 0); int do_ut_overlay(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { - struct unit_test *tests = ll_entry_start(struct unit_test, - overlay_test); - const int n_ents = ll_entry_count(struct unit_test, overlay_test); + struct unit_test *tests = UNIT_TEST_SUITE_START(overlay_test); + const int n_ents = UNIT_TEST_SUITE_COUNT(overlay_test); struct unit_test_state *uts; void *fdt_base = &__dtb_test_fdt_base_begin; void *fdt_overlay = &__dtb_test_fdt_overlay_begin; |