From 6fd475438cd54432931d6497a51362153caa9b3e Mon Sep 17 00:00:00 2001 From: Daniel Leung Date: Wed, 2 Oct 2024 16:38:27 -0700 Subject: [PATCH] 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 --- tests/subsys/input/api/testcase.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/subsys/input/api/testcase.yaml b/tests/subsys/input/api/testcase.yaml index 2bb1c600d0bf56..51cb10218b449d 100644 --- a/tests/subsys/input/api/testcase.yaml +++ b/tests/subsys/input/api/testcase.yaml @@ -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