From f67592f2e648e5577ebdfd7aeb59105dd87ff1c3 Mon Sep 17 00:00:00 2001 From: Wayne Ren Date: Thu, 28 Nov 2019 16:37:52 +0800 Subject: [PATCH] tests: enable mpu gap filling tests for arch which supports it * arc supports mpu gap filling now. * these tests can be used for any arch which supports mpu gap filling. Signed-off-by: Wayne Ren --- tests/kernel/mem_protect/mem_protect/testcase.yaml | 3 +-- tests/kernel/mem_protect/userspace/testcase.yaml | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/kernel/mem_protect/mem_protect/testcase.yaml b/tests/kernel/mem_protect/mem_protect/testcase.yaml index d6b4375897e..0e87e892a48 100644 --- a/tests/kernel/mem_protect/mem_protect/testcase.yaml +++ b/tests/kernel/mem_protect/mem_protect/testcase.yaml @@ -4,8 +4,7 @@ tests: filter: CONFIG_ARCH_HAS_USERSPACE platform_exclude: twr_ke18f tags: kernel security userspace ignore_faults - kernel.memory_protection.armv8m_gap_filling: - arch_whitelist: arm + kernel.memory_protection.gap_filling: filter: CONFIG_ARCH_HAS_USERSPACE and CONFIG_MPU_REQUIRES_NON_OVERLAPPING_REGIONS extra_args: CONFIG_MPU_GAP_FILLING=y min_ram: 32 diff --git a/tests/kernel/mem_protect/userspace/testcase.yaml b/tests/kernel/mem_protect/userspace/testcase.yaml index 9d01b40cd4d..08409a1223c 100644 --- a/tests/kernel/mem_protect/userspace/testcase.yaml +++ b/tests/kernel/mem_protect/userspace/testcase.yaml @@ -3,8 +3,7 @@ tests: filter: CONFIG_ARCH_HAS_USERSPACE tags: kernel security userspace ignore_faults min_ram: 36 - kernel.memory_protection.userspace.armv8m_gap_filling: - arch_whitelist: arm + kernel.memory_protection.userspace.gap_filling: filter: CONFIG_ARCH_HAS_USERSPACE and CONFIG_MPU_REQUIRES_NON_OVERLAPPING_REGIONS extra_args: CONFIG_MPU_GAP_FILLING=y tags: kernel security userspace ignore_faults