Commit fb193e2d authored by Keith Packard's avatar Keith Packard Committed by Fabio Baltieri
Browse files

tests/mem_protect: Use minimal libc for kernel.memory_protection



This test has trouble on qemu_x86_tiny and randomly generates a Double
Fault error. I couldn't get it to reliably run with picolibc as a Double
Fault usually occured before the test completed.

I spent a couple of hours attempting to track this down and found that it
happens when code pages for the main thread get unmapped because the
qemu_x86_tiny intentionally offers very few available PTEs.

Work around this by just using the minimal libc for this test.

Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
parent 6738e8e9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ tests:
  kernel.memory_protection:
    filter: CONFIG_ARCH_HAS_USERSPACE
    platform_exclude: twr_ke18f
    extra_args: CONFIG_TEST_HW_STACK_PROTECTION=n
    extra_args: CONFIG_TEST_HW_STACK_PROTECTION=n CONFIG_MINIMAL_LIBC=y
  kernel.memory_protection.gap_filling.arc:
    filter: CONFIG_ARCH_HAS_USERSPACE and CONFIG_MPU_REQUIRES_NON_OVERLAPPING_REGIONS
    arch_allow: arc