tests: mslab_threadsafe: fix code style

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2017-06-16 21:33:03 -04:00 committed by Kumar Gala
commit 26c7ac1f4f
2 changed files with 4 additions and 4 deletions

View file

@ -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);
}

View file

@ -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++) {