[Concept,29/33] test: boot: Clean up DM state after bootflow_cmdline()

Message ID 20260416023021.626949-30-sjg@u-boot.org
State New
Headers
Series Fix memory leaks and test pollution in sandbox tests |

Commit Message

Simon Glass April 16, 2026, 2:29 a.m. UTC
  From: Simon Glass <sjg@chromium.org>

This test uses driver model so should use the UTF_DM flag, to avoid
leaking 1MB for the MMC backing-buffers.

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

 test/boot/bootflow.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/test/boot/bootflow.c b/test/boot/bootflow.c
index 0a17f12b6a4..c4be33a63c2 100644
--- a/test/boot/bootflow.c
+++ b/test/boot/bootflow.c
@@ -1303,7 +1303,7 @@  static int bootflow_cmdline(struct unit_test_state *uts)
 
 	return 0;
 }
-BOOTSTD_TEST(bootflow_cmdline, UTF_CONSOLE);
+BOOTSTD_TEST(bootflow_cmdline, UTF_DM | UTF_SCAN_FDT | UTF_CONSOLE);
 
 /* test a few special changes to a long command line */
 static int bootflow_cmdline_special(struct unit_test_state *uts)