tests: mem_protect/mem_protect: more tables for QEMU Cortex A53

For qemu_cortex_a53 on the mem_protect test, the test
test_mem_domain_init_fail() fails due to not having enough
translation tables. However, since ARM64 MMU asserts on such
condition, and k_mem_domain_init() also asserts when fails,
there is no way to distinguish these two assertions at runtime,
thus the test was considered passing. Fix this by allocating
a few more tables so the test will actually fail on
k_mem_domain_init().

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2021-11-10 14:13:06 -08:00 committed by Anas Nashif
commit 2ffd49310a
2 changed files with 12 additions and 0 deletions

View file

@ -0,0 +1,6 @@
# Copyright (c) 2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
# Simply needs more space for the translation table
# for the mapping exhaustion test.
CONFIG_MAX_XLAT_TABLES=18

View file

@ -0,0 +1,6 @@
# Copyright (c) 2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
# Simply needs more space for the translation table
# for the mapping exhaustion test.
CONFIG_MAX_XLAT_TABLES=34