Skip to content

Commit

Permalink
tests: net: lib: lwm2m: fix the missing float support
Browse files Browse the repository at this point in the history
The tests `content_json` and `content_plain_test` depend on the float
support of libc. After PR##57340, Picolibc would be selected in
these two tests and the `PICOLIBC_IO_FLOAT` won't be selected if
the platform doesn't select `FPU`.

This commit select `CONFIG_PICOLIBC` and `CONFIG_PICOLIBC_IO_FLOAT`
for these two tests.

Signed-off-by: Huifeng Zhang <Huifeng.Zhang@arm.com>
  • Loading branch information
SgrrZhf committed Sep 8, 2023
1 parent 3ecb491 commit 081d899
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/net/lib/lwm2m/content_json/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ CONFIG_LWM2M=y
CONFIG_LWM2M_COAP_MAX_MSG_SIZE=512
CONFIG_LWM2M_RW_JSON_SUPPORT=y
CONFIG_JSON_LIBRARY=y

CONFIG_PICOLIBC=y
CONFIG_PICOLIBC_IO_FLOAT=y
3 changes: 3 additions & 0 deletions tests/net/lib/lwm2m/content_plain_text/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ CONFIG_ZTEST_NEW_API=y
CONFIG_ENTROPY_GENERATOR=y
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_LWM2M=y

CONFIG_PICOLIBC=y
CONFIG_PICOLIBC_IO_FLOAT=y

0 comments on commit 081d899

Please sign in to comment.