Skip to content
Permalink
Browse files

tests: kernel: fatal: add explicit test case for ARM and FP Sharing mode

For the ARM architecture we would like to test the HW
Stack Protection feature when building with support for
FP shared registers mode (CONFIG_FP_SHARING=y), as a
means of increasing coverage.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
  • Loading branch information...
ioannisg authored and andrewboie committed Jun 19, 2019
1 parent 70c47cb commit 0180b94afd5e5c8a68cbc7070b72cd271ac65497
Showing with 12 additions and 0 deletions.
  1. +8 −0 tests/kernel/fatal/prj_arm_fp_sharing.conf
  2. +4 −0 tests/kernel/fatal/testcase.yaml
@@ -0,0 +1,8 @@
CONFIG_HW_STACK_PROTECTION=y
CONFIG_FLOAT=y
CONFIG_FP_SHARING=y
CONFIG_ZTEST=y
CONFIG_COVERAGE=n
CONFIG_TEST_USERSPACE=y
CONFIG_APPLICATION_DEFINED_SYSCALL=y
CONFIG_SMP=n
@@ -8,6 +8,10 @@ tests:
filter: CONFIG_ARCH_HAS_STACK_PROTECTION
arch_whitelist: arm
tags: kernel ignore_faults memory_protection
kernel.common.stack_protection_arm_fp_sharing:
extra_args: CONF_FILE=prj_arm_fp_sharing.conf
filter: CONFIG_ARCH_HAS_STACK_PROTECTION and CONFIG_ARMV7_M_ARMV8_M_FP
tags: kernel ignore_faults userspace
kernel.common.stack_sentinel:
extra_args: CONF_FILE=sentinel.conf
tags: kernel ignore_faults

0 comments on commit 0180b94

Please sign in to comment.
You can’t perform that action at this time.