mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-30 08:07:59 +00:00
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:
parent
3694edcabc
commit
8b8217249f
1 changed files with 2 additions and 0 deletions
|
@ -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(cpu_get_vendor(dev, text, sizeof(text)));
|
||||||
ut_assertok(strcmp(text, "Languid Example Garbage Inc."));
|
ut_assertok(strcmp(text, "Languid Example Garbage Inc."));
|
||||||
|
|
||||||
|
ut_assertok(cpu_release_core(dev, 0));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue