This is an automated email from the ASF dual-hosted git repository. sjanc pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit 3121bf5efe9016be6a4552e64eed38799e254751 Author: Szymon Janc <[email protected]> AuthorDate: Wed Oct 21 01:11:46 2026 +0200 kernel/os: Enable OS_DEBUG_MODE for unit tests Enable OS_DEBUG_MODE by default when building unit tests (SELFTEST is set by newt test command). This enables runtime checks, like mempool poisoning or stack checks on context switch, that catch issues which unit tests would otherwise miss (e.g. use after free). Assisted-by: Claude:claude-opus-5-5 --- kernel/os/syscfg.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel/os/syscfg.yml b/kernel/os/syscfg.yml index 26be203e1..89124e535 100644 --- a/kernel/os/syscfg.yml +++ b/kernel/os/syscfg.yml @@ -202,6 +202,10 @@ syscfg.defs: ticks. value: 0 +# Enable runtime checks (e.g. mempool poisoning) in unit tests +syscfg.vals.SELFTEST: + OS_DEBUG_MODE: 1 + syscfg.vals.OS_DEBUG_MODE: OS_CRASH_STACKTRACE: 1 OS_CTX_SW_STACK_CHECK: 1
