Skip to content

Commit

Permalink
tests: input/api: limit to 1 CPU for thread mode test
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
dcpleung committed Oct 3, 2024
1 parent c710f88 commit 6fd4754
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/subsys/input/api/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ tests:
input.api.thread:
extra_configs:
- CONFIG_INPUT_MODE_THREAD=y
# 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.
- CONFIG_MP_MAX_NUM_CPUS=1
input.api.synchronous:
extra_configs:
- CONFIG_INPUT_MODE_SYNCHRONOUS=y

0 comments on commit 6fd4754

Please sign in to comment.