Navigation Menu

Skip to content

Commit

Permalink
tests: kernel: fatal: add explicit no user-mode test case
Browse files Browse the repository at this point in the history
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 19, 2019
1 parent 6020a50 commit 8004082
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/kernel/fatal/protection_no_userspace.conf
@@ -0,0 +1,5 @@
CONFIG_HW_STACK_PROTECTION=y
CONFIG_ZTEST=y
CONFIG_COVERAGE=n
CONFIG_TEST_USERSPACE=n
CONFIG_SMP=n
5 changes: 5 additions & 0 deletions tests/kernel/fatal/testcase.yaml
Expand Up @@ -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.