From b4f49bf5fc1e554e918ec9c21489ec706b2c3401 Mon Sep 17 00:00:00 2001 From: Evgeniy Paltsev Date: Tue, 9 Jul 2024 17:15:45 +0100 Subject: [PATCH] tests: posix: env: fix failure in case toolchain with minimal libc In case of minimal libc we have CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE = 0 by default. Some toolchains uses minimal libc by default (for example ARC MWDT toolchain). Let's set CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE explicitly so we can allocate memory for environment variables. Signed-off-by: Evgeniy Paltsev Signed-off-by: Eugeniy Paltsev --- tests/posix/env/testcase.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/posix/env/testcase.yaml b/tests/posix/env/testcase.yaml index 4648743bbaf..b347479976c 100644 --- a/tests/posix/env/testcase.yaml +++ b/tests/posix/env/testcase.yaml @@ -4,7 +4,9 @@ common: - qemu_riscv64 tags: posix tests: - portability.posix.env: {} + portability.posix.env: + extra_configs: + - CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=256 portability.posix.env.armclang_std_libc: toolchain_allow: armclang extra_configs: