summaryrefslogtreecommitdiff
path: root/arch/sandbox/cpu/spl.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2025-01-20 14:25:26 -0700
committerTom Rini <trini@konsulko.com>2025-01-24 14:34:39 -0600
commit94b5284398e52c44bde977aa8b1fa1f5992955a2 (patch)
tree639569f14c1112aaa4af1249c515d5d47982f877 /arch/sandbox/cpu/spl.c
parent7b576f0847659c22bd938e4f4885324f88a16e74 (diff)
test: Pass the test-state into ut_run_list()
Pass this into the function so that callers can inspect the state afterwards. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox/cpu/spl.c')
-rw-r--r--arch/sandbox/cpu/spl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/sandbox/cpu/spl.c b/arch/sandbox/cpu/spl.c
index 7056cfd0180..0ad23e4ba95 100644
--- a/arch/sandbox/cpu/spl.c
+++ b/arch/sandbox/cpu/spl.c
@@ -147,10 +147,13 @@ void spl_board_init(void)
if (state->run_unittests) {
struct unit_test *tests = UNIT_TEST_ALL_START();
const int count = UNIT_TEST_ALL_COUNT();
+ struct unit_test_state uts;
int ret;
- ret = ut_run_list("spl", NULL, tests, count,
+ ut_init_state(&uts);
+ ret = ut_run_list(&uts, "spl", NULL, tests, count,
state->select_unittests, 1, false, NULL);
+ ut_uninit_state(&uts);
/* continue execution into U-Boot */
}
}