tests: slab: fix dead code
Increase number of blocks to make this code count. Fixes coverity issue: CID: 174928 Fixes #4010 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
dd9f5e2a1d
commit
d397109e9d
2 changed files with 3 additions and 1 deletions
|
@ -31,7 +31,7 @@
|
|||
/* Number of memory blocks. The minimum number of blocks needed to run the
|
||||
* test is 2
|
||||
*/
|
||||
#define NUMBLOCKS 2
|
||||
#define NUMBLOCKS 4
|
||||
|
||||
void test_slab_get_all_blocks(void **p);
|
||||
void test_slab_free_all_blocks(void **p);
|
||||
|
@ -102,6 +102,7 @@ void helper_thread(void)
|
|||
|
||||
|
||||
k_sem_give(&SEM_HELPERDONE);
|
||||
|
||||
} /* helper thread */
|
||||
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
tests:
|
||||
kernel.memory_slabs:
|
||||
tags: bat_commit core
|
||||
min_ram: 16
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue