Skip to content

Commit 9d229e5

Browse files
tagunilnashif
authored andcommitted
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 <[email protected]>
1 parent 1f5fbe2 commit 9d229e5

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

tests/lib/c_lib/common/prj.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ CONFIG_TEST_USERSPACE=y
33
CONFIG_ZTEST_FATAL_HOOK=y
44
CONFIG_MINIMAL_LIBC_NON_REENTRANT_FUNCTIONS=y
55
CONFIG_MINIMAL_LIBC_RAND=y
6+
CONFIG_POSIX_C_LANG_SUPPORT_R=y

tests/lib/c_lib/common/testcase.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ tests:
1313
- CONFIG_MINIMAL_LIBC=y
1414
- CONFIG_MINIMAL_LIBC_NON_REENTRANT_FUNCTIONS=y
1515
- CONFIG_MINIMAL_LIBC_RAND=y
16-
- CONFIG_COMMON_LIBC_ASCTIME_R=y
17-
- CONFIG_COMMON_LIBC_CTIME_R=y
1816
libraries.libc.common.newlib:
1917
filter: CONFIG_NEWLIB_LIBC_SUPPORTED
2018
min_ram: 32

0 commit comments

Comments
 (0)