summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>2024-08-01 11:59:49 +0800
committerFabio Estevam <festevam@gmail.com>2024-08-02 15:16:51 -0300
commit8b8217249fc561021512c28b7b259e6493907dd6 (patch)
tree70758e98086d9677b47edb1f7005ee2141ae8e8f /test
parent3694edcabc4b62717cd71f64caacd4df2dbd5abd (diff)
downloadu-boot-8b8217249fc561021512c28b7b259e6493907dd6.tar.gz
u-boot-8b8217249fc561021512c28b7b259e6493907dd6.tar.bz2
u-boot-8b8217249fc561021512c28b7b259e6493907dd6.zip
test: cpu: add test for release CPU core.
Add test for API cpu_release_core(). Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test')
-rw-r--r--test/dm/cpu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/dm/cpu.c b/test/dm/cpu.c
index acba810599..8af25316ce 100644
--- a/test/dm/cpu.c
+++ b/test/dm/cpu.c
@@ -43,6 +43,8 @@ static int dm_test_cpu(struct unit_test_state *uts)
ut_assertok(cpu_get_vendor(dev, text, sizeof(text)));
ut_assertok(strcmp(text, "Languid Example Garbage Inc."));
+ ut_assertok(cpu_release_core(dev, 0));
+
return 0;
}