From 2f95e2400f84f38eca04601f20f4fdc189febd1e Mon Sep 17 00:00:00 2001 From: Andy Ross Date: Thu, 30 Aug 2018 09:26:04 -0700 Subject: [PATCH] tests/kernel/threads/no-multithreading: Disable USERSPACE 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 --- tests/kernel/threads/no-multithreading/prj.conf | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/kernel/threads/no-multithreading/prj.conf b/tests/kernel/threads/no-multithreading/prj.conf index c11665e29fc4e0..6e1dbf9c4beae0 100644 --- a/tests/kernel/threads/no-multithreading/prj.conf +++ b/tests/kernel/threads/no-multithreading/prj.conf @@ -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