tests: mslab_threadsafe: fix code style
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
a9da45a200
commit
26c7ac1f4f
2 changed files with 4 additions and 4 deletions
|
@ -12,6 +12,6 @@ extern void test_mslab_threadsafe(void);
|
|||
void test_main(void *p1, void *p2, void *p3)
|
||||
{
|
||||
ztest_test_suite(test_mslab_threadsafe,
|
||||
ztest_unit_test(test_mslab_threadsafe));
|
||||
ztest_unit_test(test_mslab_threadsafe));
|
||||
ztest_run_test_suite(test_mslab_threadsafe);
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#define BLK_SIZE2 4
|
||||
|
||||
K_MEM_SLAB_DEFINE(mslab1, BLK_SIZE1, BLK_NUM, BLK_ALIGN);
|
||||
static struct k_mem_slab mslab2, *slabs[SLAB_NUM] = {&mslab1, &mslab2};
|
||||
static struct k_mem_slab mslab2, *slabs[SLAB_NUM] = { &mslab1, &mslab2 };
|
||||
static K_THREAD_STACK_ARRAY_DEFINE(tstack, THREAD_NUM, STACK_SIZE);
|
||||
static struct k_thread tdata[THREAD_NUM];
|
||||
static char __aligned(BLK_ALIGN) tslab[BLK_SIZE2 * BLK_NUM];
|
||||
|
@ -67,8 +67,8 @@ void test_mslab_threadsafe(void)
|
|||
/* create multiple threads to invoke same memory slab APIs*/
|
||||
for (int i = 0; i < THREAD_NUM; i++) {
|
||||
tid[i] = k_thread_create(&tdata[i], tstack[i], STACK_SIZE,
|
||||
tmslab_api, NULL, NULL, NULL,
|
||||
K_PRIO_PREEMPT(1), 0, 0);
|
||||
tmslab_api, NULL, NULL, NULL,
|
||||
K_PRIO_PREEMPT(1), 0, 0);
|
||||
}
|
||||
/* TESTPOINT: all threads complete and exit the entry function*/
|
||||
for (int i = 0; i < THREAD_NUM; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue