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: Keith Packard <keithp@keithp.com>
This commit is contained in:
Keith Packard 2023-01-27 14:05:51 -08:00 committed by Fabio Baltieri
parent 6738e8e9df
commit fb193e2d3d
1 changed files with 1 additions and 1 deletions

View File

@ -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