tests: thread_init: fix style
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
115ce02a3d
commit
b593d35762
2 changed files with 18 additions and 16 deletions
|
@ -59,7 +59,7 @@ static K_THREAD_STACK_DEFINE(stack_preempt, INIT_PREEMPT_STACK_SIZE);
|
||||||
static struct k_thread thread_coop;
|
static struct k_thread thread_coop;
|
||||||
static struct k_thread thread_preempt;
|
static struct k_thread thread_preempt;
|
||||||
static u64_t t_create;
|
static u64_t t_create;
|
||||||
static struct thread_data{
|
static struct thread_data {
|
||||||
int init_prio;
|
int init_prio;
|
||||||
s32_t init_delay;
|
s32_t init_delay;
|
||||||
void *init_p1;
|
void *init_p1;
|
||||||
|
@ -146,6 +146,7 @@ void test_kinit_preempt_thread(void)
|
||||||
INIT_PREEMPT_STACK_SIZE, thread_entry, INIT_PREEMPT_P1,
|
INIT_PREEMPT_STACK_SIZE, thread_entry, INIT_PREEMPT_P1,
|
||||||
INIT_PREEMPT_P2, INIT_PREEMPT_P3, INIT_PREEMPT_PRIO,
|
INIT_PREEMPT_P2, INIT_PREEMPT_P3, INIT_PREEMPT_PRIO,
|
||||||
INIT_PREEMPT_OPTION, INIT_PREEMPT_DELAY);
|
INIT_PREEMPT_OPTION, INIT_PREEMPT_DELAY);
|
||||||
|
|
||||||
/*record time stamp of thread creation*/
|
/*record time stamp of thread creation*/
|
||||||
t_create = k_uptime_get();
|
t_create = k_uptime_get();
|
||||||
zassert_not_null(pthread, "thread creation failed\n");
|
zassert_not_null(pthread, "thread creation failed\n");
|
||||||
|
@ -175,6 +176,7 @@ void test_kinit_coop_thread(void)
|
||||||
INIT_COOP_STACK_SIZE, thread_entry, INIT_COOP_P1,
|
INIT_COOP_STACK_SIZE, thread_entry, INIT_COOP_P1,
|
||||||
INIT_COOP_P2, INIT_COOP_P3, INIT_COOP_PRIO,
|
INIT_COOP_P2, INIT_COOP_P3, INIT_COOP_PRIO,
|
||||||
INIT_COOP_OPTION, INIT_COOP_DELAY);
|
INIT_COOP_OPTION, INIT_COOP_DELAY);
|
||||||
|
|
||||||
/*record time stamp of thread creation*/
|
/*record time stamp of thread creation*/
|
||||||
t_create = k_uptime_get();
|
t_create = k_uptime_get();
|
||||||
zassert_not_null(pthread, "thread spawn failed\n");
|
zassert_not_null(pthread, "thread spawn failed\n");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue