tests: mslab_api: fix style

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2017-06-16 21:31:32 -04:00 committed by Kumar Gala
commit d744a2709e
2 changed files with 20 additions and 20 deletions

View file

@ -113,11 +113,11 @@ static void tmslab_used_get(void *data)
zassert_true(k_mem_slab_alloc(pslab, &block[i], K_NO_WAIT) == 0, zassert_true(k_mem_slab_alloc(pslab, &block[i], K_NO_WAIT) == 0,
NULL); NULL);
/** TESTPOINT: Get the number of used blocks in a memory slab.*/ /** 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. * 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, 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++) { for (int i = 0; i < BLK_NUM; i++) {
k_mem_slab_free(pslab, &block[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_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_used_get(pslab), BLK_NUM - 1 - i, NULL);
} }
} }