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>
This commit is contained in:
Hou Zhiqiang 2024-08-01 11:59:49 +08:00 committed by Fabio Estevam
parent 3694edcabc
commit 8b8217249f

View file

@ -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;
}