Skip to content

Commit

Permalink
tests/kernel/threads/no-multithreading: Disable USERSPACE
Browse files Browse the repository at this point in the history
Building with !MULTITHREADING is designed for bootloaders and similar
minimal-functionality use cases.  It's pathologically silly to combine
it with MMU drivers and address space partitioning, even though on
some architectures that technically works (on ARM, it seems not to).

The test intent was to disable this originally, but it turns out that
doesn't work.  There is a TEST_USERSPACE kconfig symbol that also
needs to be explicitly turned off, otherwise it will reselect
USERSPACE against our wishes.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
  • Loading branch information
Andy Ross authored and nashif committed Aug 30, 2018
1 parent 1f1307e commit 2f95e24
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/kernel/threads/no-multithreading/prj.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
CONFIG_ZTEST=y
CONFIG_MULTITHREADING=n
CONFIG_USERSPACE=n
CONFIG_BT=n
CONFIG_USB=n

# Running without multithreading implies the lack of MMU support.
# Setting CONFIG_USERSPACE=n alone is not enough to disable userspace.
# The TEST_USERSPACE symbol (designed to enable userspace by default
# on tests platforms that support it) defaults to =y and will
# automatically select it back.
CONFIG_TEST_USERSPACE=n
CONFIG_USERSPACE=n

0 comments on commit 2f95e24

Please sign in to comment.