From 9d229e5c1874ce52b518ed58c7817490a1083e95 Mon Sep 17 00:00:00 2001 From: Ilya Tagunov Date: Tue, 12 Nov 2024 17:09:32 +0000 Subject: [PATCH] tests: lib: c_lib: add the proper dependency for asctime_r and ctime_r As the test uses reentrant time functions like asctime_r or ctime_r, it should select POSIX_C_LANG_SUPPORT_R. Otherwise there are build failures observed with the default test configuration if these functions are not provided by the toolchain. Signed-off-by: Ilya Tagunov --- tests/lib/c_lib/common/prj.conf | 1 + tests/lib/c_lib/common/testcase.yaml | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/lib/c_lib/common/prj.conf b/tests/lib/c_lib/common/prj.conf index 331c19559db..0542b6a4ed5 100644 --- a/tests/lib/c_lib/common/prj.conf +++ b/tests/lib/c_lib/common/prj.conf @@ -3,3 +3,4 @@ CONFIG_TEST_USERSPACE=y CONFIG_ZTEST_FATAL_HOOK=y CONFIG_MINIMAL_LIBC_NON_REENTRANT_FUNCTIONS=y CONFIG_MINIMAL_LIBC_RAND=y +CONFIG_POSIX_C_LANG_SUPPORT_R=y diff --git a/tests/lib/c_lib/common/testcase.yaml b/tests/lib/c_lib/common/testcase.yaml index 40a33afe0cf..4d184b9536f 100644 --- a/tests/lib/c_lib/common/testcase.yaml +++ b/tests/lib/c_lib/common/testcase.yaml @@ -13,8 +13,6 @@ tests: - CONFIG_MINIMAL_LIBC=y - CONFIG_MINIMAL_LIBC_NON_REENTRANT_FUNCTIONS=y - CONFIG_MINIMAL_LIBC_RAND=y - - CONFIG_COMMON_LIBC_ASCTIME_R=y - - CONFIG_COMMON_LIBC_CTIME_R=y libraries.libc.common.newlib: filter: CONFIG_NEWLIB_LIBC_SUPPORTED min_ram: 32