tests: zbus/hlp_priority_boost: use 1cpu setup
The zbus hlp_priority_boost test requires thread priority boosting. If it is running SMP, it is possible that the message has already been processed before the check for priority boosting is done, thus failing the test. So change the test to use 1 CPU only. Fixes #79197 Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
1ec7e525ee
commit
289f80f4a1
1 changed files with 2 additions and 1 deletions
|
@ -177,4 +177,5 @@ ZTEST(hlp_priority_boost, test_priority_elevation)
|
||||||
zassert_true(prio == 8, "The priority must be 8, but it is %d", prio);
|
zassert_true(prio == 8, "The priority must be 8, but it is %d", prio);
|
||||||
}
|
}
|
||||||
|
|
||||||
ZTEST_SUITE(hlp_priority_boost, NULL, NULL, NULL, NULL, NULL);
|
ZTEST_SUITE(hlp_priority_boost, NULL, NULL,
|
||||||
|
ztest_simple_1cpu_before, ztest_simple_1cpu_after, NULL);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue