/* Validate behavior of multiple calls to k_thread_start() 
Call k_thread_start() on an already terminated thread */
ZTEST(threads_lifecycle, test_thread_start)
/* Validate behavior of multiple calls to k_thread_start() 
Call k_thread_start() on an already terminated thread */
ZTEST(threads_lifecycle, test_thread_start)
{
	tp2 = 5;
	k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE,
				      thread_entry_delay, NULL, NULL, NULL,
				      K_HIGHEST_THREAD_PRIO,
				      K_USER, K_FOREVER);
	k_thread_start(tid);
	k_yield();
	zassert_true(tp2 == 100);
	tp2 = 50;
	k_thread_start(tid);
	k_yield();
	zassert_false(tp2 == 100);
}