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 <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
Alberto Escolar Piedras 2024-05-17 10:02:45 +02:00 committed by Maureen Helm
commit ab50b375e5

View file

@ -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