tests: mslab_api: fix style
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
9541ebc7a3
commit
d744a2709e
2 changed files with 20 additions and 20 deletions
|
@ -113,11 +113,11 @@ static void tmslab_used_get(void *data)
|
|||
zassert_true(k_mem_slab_alloc(pslab, &block[i], K_NO_WAIT) == 0,
|
||||
NULL);
|
||||
/** TESTPOINT: Get the number of used blocks in a memory slab.*/
|
||||
zassert_equal(k_mem_slab_num_used_get(pslab), i+1, NULL);
|
||||
zassert_equal(k_mem_slab_num_used_get(pslab), i + 1, NULL);
|
||||
/**
|
||||
* TESTPOINT: Get the number of unused blocks in a memory slab.
|
||||
*/
|
||||
zassert_equal(k_mem_slab_num_free_get(pslab), BLK_NUM-1-i, NULL);
|
||||
zassert_equal(k_mem_slab_num_free_get(pslab), BLK_NUM - 1 - i, NULL);
|
||||
}
|
||||
|
||||
zassert_equal(k_mem_slab_alloc(pslab, &block_fail, K_NO_WAIT), -ENOMEM,
|
||||
|
@ -134,8 +134,8 @@ static void tmslab_used_get(void *data)
|
|||
|
||||
for (int i = 0; i < BLK_NUM; i++) {
|
||||
k_mem_slab_free(pslab, &block[i]);
|
||||
zassert_equal(k_mem_slab_num_free_get(pslab), i+1, NULL);
|
||||
zassert_equal(k_mem_slab_num_used_get(pslab), BLK_NUM-1-i, NULL);
|
||||
zassert_equal(k_mem_slab_num_free_get(pslab), i + 1, NULL);
|
||||
zassert_equal(k_mem_slab_num_used_get(pslab), BLK_NUM - 1 - i, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue