Skip to content
Commit 1530e868 authored by Daniel Leung's avatar Daniel Leung Committed by Benjamin Cabé
Browse files

tests: kernel/pipe_api: move local k_pipe var to global



When CONFIG_KERNEL_COHERENCE is enabled, pend_locked() asserts
when wait_q is not in coherent memory. The k_pipes used in
the pipe_api tests are declared locally within the test. They
are located within the thread stacks and those wait_q inside
k_pipe struct are thus not considered in coherent memory.
To make them work, replace the local ones with a global
k_pipe object. Since each test initializes the pipe object
locally, the tests are not functionally changed.

Fixes #84235

Signed-off-by: default avatarDaniel Leung <daniel.leung@intel.com>
parent 289f80f4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment