Skip to content

Commit 289f80f

Browse files
dcpleungkartben
authored andcommitted
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>
1 parent 1ec7e52 commit 289f80f

File tree

1 file changed

+2
-1
lines changed
  • tests/subsys/zbus/hlp_priority_boost/src

1 file changed

+2
-1
lines changed

tests/subsys/zbus/hlp_priority_boost/src/main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,4 +177,5 @@ ZTEST(hlp_priority_boost, test_priority_elevation)
177177
zassert_true(prio == 8, "The priority must be 8, but it is %d", prio);
178178
}
179179

180-
ZTEST_SUITE(hlp_priority_boost, NULL, NULL, NULL, NULL, NULL);
180+
ZTEST_SUITE(hlp_priority_boost, NULL, NULL,
181+
ztest_simple_1cpu_before, ztest_simple_1cpu_after, NULL);

0 commit comments

Comments
 (0)