diff options
author | Simon Glass <sjg@chromium.org> | 2025-05-02 08:46:28 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2025-05-30 09:49:32 +0100 |
commit | da754e20c99a0e611b05c74f9e28daf9cdf1a199 (patch) | |
tree | 8a30fdef4f8288e69044a0aa914cbbeed2cee079 /test | |
parent | b991a0c8bf30095837b096acd691e0d2add07b8c (diff) |
expo: Split bootflow_menu_new() into two pieces
Split the iteration piece of this function into bootflow_menu_add_all()
so that it is possible for the caller to be in control of adding items
to the menu.
Move the expo_destroy() call into the caller.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/boot/bootflow.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/boot/bootflow.c b/test/boot/bootflow.c index a930d2cc309..58885b5d8bf 100644 --- a/test/boot/bootflow.c +++ b/test/boot/bootflow.c @@ -878,6 +878,7 @@ static int bootflow_menu_theme(struct unit_test_state *uts) ut_assertok(scan_mmc4_bootdev(uts)); ut_assertok(bootflow_menu_new(&exp)); + ut_assertok(bootflow_menu_add_all(exp)); node = ofnode_path("/bootstd/theme"); ut_assert(ofnode_valid(node)); ut_assertok(bootflow_menu_apply_theme(exp, node)); |