[PATCH 7/8] efi_loader: Check that the bootflow is not removed by app

Simon Glass sjg at chromium.org
Mon Jan 6 15:47:54 CET 2025


The bootflow should not be affected by the app running and returning.
Add a check that it is still valid after the app completes execution.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 test/boot/bootflow.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/test/boot/bootflow.c b/test/boot/bootflow.c
index 8b1bc9f10ab..81e81f3cfbf 100644
--- a/test/boot/bootflow.c
+++ b/test/boot/bootflow.c
@@ -1330,6 +1330,9 @@ static int bootflow_efi(struct unit_test_state *uts)
 
 	ut_assert_console_end();
 
+	/* make sure the bootflow is still present */
+	ut_assertnonnull(std->cur_bootflow);
+
 	/* check memory allocations are as expected */
 	if (!hdr)
 		return 0;
-- 
2.34.1



More information about the U-Boot mailing list