Memory Slab Tests

Main task to test memory slab interfaces.

test_mslab()

Initialize the memory slab using k_mem_slab_init() and allocates/frees blocks.

test_mslab_kinit()

Verify K_MEM_SLAB_DEFINE() with allocates/frees blocks.

test_mslab_kdefine()

Verify alloc and free of blocks from mem_slab.

test_mslab_alloc_free_thread()

Allocate memory blocks and check for alignment of 8 bytes.

test_mslab_alloc_align()

Verify allocation of memory blocks with timeouts.

test_mslab_alloc_timeout()

Verify count of allocated blocks.

test_mslab_used_get()

Verify pending of allocating blocks.

test_mslab_pending()

Test mem_slab access outside the module.

test_mslab_kdefine_extern()

Verify alloc with multiple threads.

test_mslab_alloc_wait_prio()

Verify alloc and free from multiple equal priority threads.

test_mslab_threadsafe()