tests: mem_heap: fix code style
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
27f32b9d56
commit
f268b6acf2
3 changed files with 9 additions and 9 deletions
|
@ -14,9 +14,9 @@ extern void test_mheap_block_desc(void);
|
|||
void test_main(void *p1, void *p2, void *p3)
|
||||
{
|
||||
ztest_test_suite(test_mheap_api,
|
||||
ztest_unit_test(test_mheap_malloc_free),
|
||||
ztest_unit_test(test_mheap_malloc_align4),
|
||||
ztest_unit_test(test_mheap_min_block_size),
|
||||
ztest_unit_test(test_mheap_block_desc));
|
||||
ztest_unit_test(test_mheap_malloc_free),
|
||||
ztest_unit_test(test_mheap_malloc_align4),
|
||||
ztest_unit_test(test_mheap_min_block_size),
|
||||
ztest_unit_test(test_mheap_block_desc));
|
||||
ztest_run_test_suite(test_mheap_api);
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#define TIMEOUT 2000
|
||||
#define BLK_SIZE_MIN 64
|
||||
#define BLK_NUM_MAX (CONFIG_HEAP_MEM_POOL_SIZE/BLK_SIZE_MIN)
|
||||
#define BLK_NUM_MIN (CONFIG_HEAP_MEM_POOL_SIZE/(BLK_SIZE_MIN<<2))
|
||||
#define BLK_SIZE_EXCLUDE_DESC (BLK_SIZE_MIN-16)
|
||||
#define BLK_SIZE_QUARTER (CONFIG_HEAP_MEM_POOL_SIZE>>2)
|
||||
#define BLK_NUM_MAX (CONFIG_HEAP_MEM_POOL_SIZE / BLK_SIZE_MIN)
|
||||
#define BLK_NUM_MIN (CONFIG_HEAP_MEM_POOL_SIZE / (BLK_SIZE_MIN << 2))
|
||||
#define BLK_SIZE_EXCLUDE_DESC (BLK_SIZE_MIN - 16)
|
||||
#define BLK_SIZE_QUARTER (CONFIG_HEAP_MEM_POOL_SIZE >> 2)
|
||||
|
|
|
@ -36,7 +36,7 @@ void test_mheap_malloc_align4(void)
|
|||
for (int i = 0; i < BLK_NUM_MAX; i++) {
|
||||
block[i] = k_malloc(i);
|
||||
zassert_not_null(block[i], NULL);
|
||||
zassert_false((int)block[i]%4, NULL);
|
||||
zassert_false((int)block[i] % 4, NULL);
|
||||
}
|
||||
|
||||
/* test case tear down*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue