From ac442203bb02db19c63009a2825779c7751508ea Mon Sep 17 00:00:00 2001 From: Carles Cufi Date: Thu, 15 Aug 2019 11:45:55 +0200 Subject: [PATCH] tests: kernel: mutex: Require 32kB RAM when building with USERSPACE The sys_mutex test doesn't seem to fit in 24kB of RAM anymore, when building with user mode support (CONFIG_USERSPACE=y). We, therefore, restrict it to platforms that have 32KB or more of RAM. We also filter the test with ARCH_HAS_USERSPACE explicitly. The alternative setup of the sys_mutex test, i.e. without user mode support (CONFIG_TEST_USERSPACE=n) continues to build for platforms with less than 32k of RAM. Signed-off-by: Carles Cufi --- tests/kernel/mutex/sys_mutex/testcase.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/kernel/mutex/sys_mutex/testcase.yaml b/tests/kernel/mutex/sys_mutex/testcase.yaml index 349ee2743cc..23f86fff780 100644 --- a/tests/kernel/mutex/sys_mutex/testcase.yaml +++ b/tests/kernel/mutex/sys_mutex/testcase.yaml @@ -1,5 +1,7 @@ tests: sys.mutex: + min_ram: 32 + filter: CONFIG_ARCH_HAS_USERSPACE tags: kernel userspace sys.mutex.nouser: tags: kernel