tests: mem_protect/obj_validation: fix check for heap size

Commit 3fbf12487c introduced a way
to add to CONFIG_HEAP_MEM_POOL_SIZE if, for example, subsystems
need more heap space. However, the size check in obj_validation
was still using the old kconfig, and was failing when extra
space was specified. So update the size check to use the updated
size.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2024-02-10 16:10:32 -08:00 committed by Henrik Brix Andersen
parent 7567e7a627
commit 575eb123e9

View file

@ -135,7 +135,7 @@ ZTEST(object_validation, test_kobj_assign_perms_on_alloc_obj)
struct k_thread *thread = _current;
uintptr_t start_addr, end_addr;
size_t size_heap = CONFIG_HEAP_MEM_POOL_SIZE;
size_t size_heap = K_HEAP_MEM_POOL_SIZE;
/* dynamically allocate kernel object semaphore */
test_dyn_sem = k_object_alloc(K_OBJ_SEM);