Skip to content

Commit 667c01b

Browse files
dcpleungfabiobaltieri
authored andcommitted
tests: input/api: limit to 1 CPU for thread mode test
There is a check to see if it is no longer able to push more messages into a full queue. When these is another CPU consuming messages, the queue would not be full at that point. A new message can be pushed into the queue and thus failing the "full queue" check. So limit this to 1 CPU only so this check's assumption can be fulfilled. Fixes #79319 Signed-off-by: Daniel Leung <[email protected]>
1 parent d59bb2f commit 667c01b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/subsys/input/api/testcase.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ tests:
99
input.api.thread:
1010
extra_configs:
1111
- CONFIG_INPUT_MODE_THREAD=y
12+
# There is a check to see if it is no longer able to push more
13+
# messages into a full queue. When these is another CPU consuming
14+
# messages, the queue would not be full at that point. A new message
15+
# can be pushed into the queue and thus failing the "full queue"
16+
# check. So limit this to 1 CPU only so this check's assumption
17+
# can be fulfilled.
18+
- CONFIG_MP_MAX_NUM_CPUS=1
1219
input.api.synchronous:
1320
extra_configs:
1421
- CONFIG_INPUT_MODE_SYNCHRONOUS=y

0 commit comments

Comments
 (0)