[PATCH 10/30] dm: test: Avoid destroying uclasses with of-platdata-inst

Simon Glass sjg at chromium.org
Thu Dec 31 05:09:40 CET 2020


It is not possible to destroy the uclasses when they are created at
build time. Skip this step so that SPL test can complete successfully.

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

 test/dm/test-main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/dm/test-main.c b/test/dm/test-main.c
index 69458d62c86..3ec88ed0460 100644
--- a/test/dm/test-main.c
+++ b/test/dm/test-main.c
@@ -107,7 +107,8 @@ static int dm_do_test(struct unit_test_state *uts, struct unit_test *test,
 	gd->flags &= ~(GD_FLG_SILENT | GD_FLG_RECORD);
 	state_set_skip_delays(false);
 
-	ut_assertok(dm_test_destroy(uts));
+	if (!CONFIG_IS_ENABLED(OF_PLATDATA_INST))
+		ut_assertok(dm_test_destroy(uts));
 
 	return 0;
 }
-- 
2.29.2.729.g45daf8777d-goog



More information about the U-Boot mailing list