]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
test: cpu: add test for release CPU core.
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>
Thu, 1 Aug 2024 03:59:49 +0000 (11:59 +0800)
committerFabio Estevam <festevam@gmail.com>
Fri, 2 Aug 2024 18:16:51 +0000 (15:16 -0300)
Add test for API cpu_release_core().

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
test/dm/cpu.c

index acba810599666944682ee0bd8f10d545325632e5..8af25316ceac9b3e2377ec496b05cfe6b329f380 100644 (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;
 }