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 <[email protected]> --- 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

