Skip to content

Commit d397109

Browse files
nashifAnas Nashif
authored andcommitted
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 <[email protected]>
1 parent dd9f5e2 commit d397109

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tests/kernel/mem_slab/mslab/src/slab.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
/* Number of memory blocks. The minimum number of blocks needed to run the
3232
* test is 2
3333
*/
34-
#define NUMBLOCKS 2
34+
#define NUMBLOCKS 4
3535

3636
void test_slab_get_all_blocks(void **p);
3737
void test_slab_free_all_blocks(void **p);
@@ -102,6 +102,7 @@ void helper_thread(void)
102102

103103

104104
k_sem_give(&SEM_HELPERDONE);
105+
105106
} /* helper thread */
106107

107108

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
tests:
22
kernel.memory_slabs:
33
tags: bat_commit core
4+
min_ram: 16

0 commit comments

Comments
 (0)