Skip to content
Permalink
Browse files

tests: kernel: fatal: add explicit no user-mode test case

We would like to test the HW stack protection feature in ARM
builds with no user-mode support, i.e. CONFIG_USERSPACE=n. For
that we add a new test-case in tests/kernel/fatal test suite.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
  • Loading branch information...
ioannisg authored and andrewboie committed Jun 16, 2019
1 parent 6020a50 commit 8004082389c090ba29dd5eb196bf04f357f8bc0a
Showing with 10 additions and 0 deletions.
  1. +5 −0 tests/kernel/fatal/protection_no_userspace.conf
  2. +5 −0 tests/kernel/fatal/testcase.yaml
@@ -0,0 +1,5 @@
CONFIG_HW_STACK_PROTECTION=y
CONFIG_ZTEST=y
CONFIG_COVERAGE=n
CONFIG_TEST_USERSPACE=n
CONFIG_SMP=n
@@ -3,6 +3,11 @@ tests:
extra_args: CONF_FILE=prj.conf
filter: CONFIG_ARCH_HAS_STACK_PROTECTION
tags: kernel ignore_faults userspace
kernel.common.stack_protection_no_userspace:
extra_args: CONF_FILE=protection_no_userspace.conf
filter: CONFIG_ARCH_HAS_STACK_PROTECTION
arch_whitelist: arm
tags: kernel ignore_faults memory_protection
kernel.common.stack_sentinel:
extra_args: CONF_FILE=sentinel.conf
tags: kernel ignore_faults

0 comments on commit 8004082

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