Skip to content

Commit

Permalink
tests/posix/env: set CONFIG_PICOLIBC=y
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
aescolar authored and MaureenHelm committed May 24, 2024
1 parent 6db2c2c commit ab50b37
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/posix/env/prj.conf
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ab50b37

Please sign in to comment.