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:
Anas Nashif 2018-02-10 08:44:36 -06:00 committed by Anas Nashif
commit d397109e9d
2 changed files with 3 additions and 1 deletions

View file

@ -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 */

View file

@ -1,3 +1,4 @@
tests:
kernel.memory_slabs:
tags: bat_commit core
min_ram: 16