Home
last modified time | relevance | path

Searched refs:block_fail (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/tests/kernel/mem_slab/mslab_api/src/
Dtest_mslab_api.c75 void *block[BLK_NUM], *block_fail; in tmslab_alloc_timeout() local
86 zassert_equal(k_mem_slab_alloc(pslab, &block_fail, K_NO_WAIT), -ENOMEM, in tmslab_alloc_timeout()
89 err = k_mem_slab_alloc(pslab, &block_fail, K_MSEC(TIMEOUT)); in tmslab_alloc_timeout()
112 void *block[BLK_NUM], *block_fail; in tmslab_used_get() local
125 zassert_equal(k_mem_slab_alloc(pslab, &block_fail, K_NO_WAIT), -ENOMEM, in tmslab_used_get()
132 zassert_equal(k_mem_slab_alloc(pslab, &block_fail, K_MSEC(TIMEOUT)), in tmslab_used_get()
/Zephyr-latest/tests/lib/multi_heap/src/
Dtest_mheap_api.c70 void *block[2 * BLK_NUM_MAX], *block_fail; in ZTEST() local
84 block_fail = k_malloc(BLK_SIZE_MIN); in ZTEST()
86 zassert_is_null(block_fail, NULL); in ZTEST()
100 block_fail = k_malloc(OVERFLOW_SIZE); in ZTEST()
101 zassert_is_null(block_fail, NULL); in ZTEST()