Commit 326f7bd4 authored by Andrzej Głąbek's avatar Andrzej Głąbek Committed by Carles Cufi
Browse files

tests: Increase stack size when nRF DK serial workaround is enabled

... and tests are built with no optimizations. The standard size may
not be sufficient in such circumstances.

Commit 4b110354 addressed the same
issue in a single test and used a higher value (1024) that turns out
to be not necessary, so revert also that change to make the cleanup
easier when the workaround will no longer be needed.

Signed-off-by: default avatarAndrzej Głąbek <andrzej.glabek@nordicsemi.no>
parent 26f0a4f5
Loading
Loading
Loading
Loading
+7 −0
Changes for boards/arm/nrf5340dk_nrf5340/Kconfig.defconfig: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -102,3 +102,10 @@ endif # BOARD_NRF5340DK_NRF5340_CPUNET

config UART_NRF_DK_SERIAL_WORKAROUND
	default y if ZTEST

# When the nRF DK serial workaround is enabled, increase the stack size in
# tests built with no optimizations, as the standard size may be insufficient
# then. Use 512 to align with the FPU_SHARING case, where the default value
# is also modified.
config TEST_EXTRA_STACK_SIZE
	default 512 if UART_NRF_DK_SERIAL_WORKAROUND && NO_OPTIMIZATIONS
+7 −0
Changes for boards/arm/nrf9160dk_nrf9160/Kconfig.defconfig: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -63,3 +63,10 @@ endif # BOARD_NRF9160DK_NRF9160 || BOARD_NRF9160DK_NRF9160_NS

config UART_NRF_DK_SERIAL_WORKAROUND
	default y if ZTEST

# When the nRF DK serial workaround is enabled, increase the stack size in
# tests built with no optimizations, as the standard size may be insufficient
# then. Use 512 to align with the FPU_SHARING case, where the default value
# is also modified.
config TEST_EXTRA_STACK_SIZE
	default 512 if UART_NRF_DK_SERIAL_WORKAROUND && NO_OPTIMIZATIONS
+0 −1
Changes for tests/arch/arm/arm_interrupt/testcase.yaml: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -11,7 +11,6 @@ tests:
      - CONFIG_NO_OPTIMIZATIONS=y
      - CONFIG_IDLE_STACK_SIZE=512
      - CONFIG_MAIN_STACK_SIZE=2048
      - CONFIG_TEST_EXTRA_STACK_SIZE=1024
  arch.interrupt.extra_exception_info:
    filter: not CONFIG_TRUSTED_EXECUTION_NONSECURE
    extra_configs: