tests/kernel/mem_protect: Remove mem_pool test case
The sys_mem_pool data structure is going away. And this test case
didn't actually do much. All it did was create a sys_mem_pool in the
app data section (I guess that's the "mem_protect" part?) and validate
that it was usable. We have tests for sys_heap to do that already
elsewhere anyway; no point in porting.
Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
diff --git a/tests/kernel/mem_protect/mem_protect/src/main.c b/tests/kernel/mem_protect/mem_protect/src/main.c
index eb4e659..20f6600 100644
--- a/tests/kernel/mem_protect/mem_protect/src/main.c
+++ b/tests/kernel/mem_protect/mem_protect/src/main.c
@@ -36,7 +36,6 @@
ztest_unit_test(test_mem_part_overlap),
/* mem_partition.c */
- ztest_unit_test(test_macros_obtain_names_data_bss),
ztest_user_unit_test(test_mem_part_assign_bss_vars_zero),
ztest_unit_test(test_mem_part_auto_determ_size),
diff --git a/tests/kernel/mem_protect/mem_protect/src/mem_partition.c b/tests/kernel/mem_protect/mem_protect/src/mem_partition.c
index 93c9976..d771d14 100644
--- a/tests/kernel/mem_protect/mem_protect/src/mem_partition.c
+++ b/tests/kernel/mem_protect/mem_protect/src/mem_partition.c
@@ -5,42 +5,12 @@
*/
#include <kernel.h>
-#include <sys/mempool.h>
#include "mem_protect.h"
static K_APP_DMEM(ztest_mem_partition) int var = 1356;
static K_APP_BMEM(ztest_mem_partition) int zeroed_var = 20420;
static K_APP_BMEM(ztest_mem_partition) int bss_var;
-SYS_MEM_POOL_DEFINE(data_pool, NULL, BLK_SIZE_MIN_MD, BLK_SIZE_MAX_MD,
- BLK_NUM_MAX_MD, BLK_ALIGN_MD,
- K_APP_DMEM_SECTION(ztest_mem_partition));
-
-/**
- * @brief Test system provide means to obtain names of the data and BSS sections
- *
- * @details
- * - Define memory partition and define system memory pool using macros
- * SYS_MEM_POOL_DEFINE
- * - Section name of the destination binary section for pool data will be
- * obtained at build time by macros K_APP_DMEM_SECTION() which obtaines
- * a section name.
- * - Then to check that system memory pool initialized correctly by allocating
- * a block from it and check that it is not NULL.
- *
- * @ingroup kernel_memprotect_tests
- *
- * @see K_APP_DMEM_SECTION()
- */
-void test_macros_obtain_names_data_bss(void)
-{
- sys_mem_pool_init(&data_pool);
- void *block;
-
- block = sys_mem_pool_alloc(&data_pool, BLK_SIZE_MAX_MD - DESC_SIZE);
- zassert_not_null(block, NULL);
-}
-
/**
* @brief Test assigning global data and BSS variables to memory partitions
*