From ab50b375e5a347de5ccaf3191764709c25479130 Mon Sep 17 00:00:00 2001 From: Alberto Escolar Piedras Date: Fri, 17 May 2024 10:02:45 +0200 Subject: [PATCH] tests/posix/env: set CONFIG_PICOLIBC=y Chosing by default in the prj.conf PICOLIBC ensures we also use an embedded libC even when built for a native target and even if we dont set POSIX_API. This ensures the test will build and pass properly when built with default configuration from command line without using the test yaml. This change does not affect the build result for other targets as those defaulted already to PICOLIBC. Signed-off-by: Alberto Escolar Piedras --- tests/posix/env/prj.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/posix/env/prj.conf b/tests/posix/env/prj.conf index 7389f7de33e..7529d301e2e 100644 --- a/tests/posix/env/prj.conf +++ b/tests/posix/env/prj.conf @@ -1,3 +1,6 @@ CONFIG_ZTEST=y CONFIG_POSIX_ENV=y +# Let's explicitly choose PICOLIBC, so it is used if supported even if it would not have been the +# default (otherwise native targets default to the host C library) +CONFIG_PICOLIBC=y CONFIG_COMMON_LIBC_MALLOC=y