Skip to content

Commit

Permalink
tests: dynamic stack: Build options fixes
Browse files Browse the repository at this point in the history
Increase MAX_THREAD_BYTES since some targets complain about it when
userspace is enabled.

Remove hw stack protection, this requires an additional page allocation
even if userspace is not enabled since we are not testing it, lets
disable it so it is clear how much space is needed for stacks with or
without userspace.

Remove unused debug options.

Signed-off-by: Flavio Ceolin <[email protected]>
  • Loading branch information
Flavio Ceolin committed Jun 27, 2023
1 parent a1b584d commit f7ac0a4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/kernel/threads/dynamic_thread_stack/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@ CONFIG_ZTEST=y
CONFIG_ZTEST_NEW_API=y
CONFIG_INIT_STACKS=y
CONFIG_THREAD_STACK_INFO=y
CONFIG_MAX_THREAD_BYTES=3
CONFIG_MAX_THREAD_BYTES=5
CONFIG_DYNAMIC_THREAD=y
CONFIG_DYNAMIC_THREAD_POOL_SIZE=2
CONFIG_DYNAMIC_THREAD_ALLOC=y
CONFIG_HEAP_MEM_POOL_SIZE=16384
CONFIG_ZTEST_STACK_SIZE=2048
CONFIG_MAIN_STACK_SIZE=2048

CONFIG_NO_OPTIMIZATIONS=y
CONFIG_DEBUG=y
CONFIG_DEBUG_INFO=y
CONFIG_DEBUG_THREAD_INFO=y
CONFIG_HW_STACK_PROTECTION=n
CONFIG_TEST_HW_STACK_PROTECTION=n

0 comments on commit f7ac0a4

Please sign in to comment.