Skip to content

Commit fb04730

Browse files
SgrrZhfde-nordic
authored andcommitted
[nrf fromtree] tests: net: lib: lwm2m: fix the missing float support
The tests `content_json` and `content_plain_test` depend on the float support of libc. After PR#zephyrproject-rtos#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 <[email protected]> (cherry picked from commit 5a1a1fe) Signed-off-by: Dominik Ermel <[email protected]>
1 parent 120b33f commit fb04730

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tests/net/lib/lwm2m/content_json/prj.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ CONFIG_LWM2M=y
99
CONFIG_LWM2M_COAP_MAX_MSG_SIZE=512
1010
CONFIG_LWM2M_RW_JSON_SUPPORT=y
1111
CONFIG_JSON_LIBRARY=y
12+
13+
CONFIG_PICOLIBC_IO_FLOAT=y

tests/net/lib/lwm2m/content_plain_text/prj.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ CONFIG_ZTEST_NEW_API=y
66
CONFIG_ENTROPY_GENERATOR=y
77
CONFIG_TEST_RANDOM_GENERATOR=y
88
CONFIG_LWM2M=y
9+
10+
CONFIG_PICOLIBC_IO_FLOAT=y

0 commit comments

Comments
 (0)