Skip to content

Commit adab85a

Browse files
committed
tests: posix: timers: provide at least 1 dynamic thread
timer_create() will error if there are no dynamic threads to run the SIGEV_THREAD handler, causing the test to fail (where it was previously expected to pass). Ensure that there is at least 1 dynamic thread available to the POSIX API. Signed-off-by: Chris Friedt <[email protected]>
1 parent 38293af commit adab85a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/posix/timers/prj.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@ CONFIG_ZTEST=y
33

44
CONFIG_POSIX_AEP_CHOICE_BASE=y
55
CONFIG_POSIX_TIMERS=y
6+
7+
# Needed for timer_create() when using SIGEV_THREAD
8+
CONFIG_DYNAMIC_THREAD=y
9+
CONFIG_DYNAMIC_THREAD_POOL_SIZE=1

0 commit comments

Comments
 (0)