/* Spawn thread with a delay. 
Create a user thread with delay and check if the thread entry function is executed only after the timeout occurs. */
ZTEST_USER(threads_lifecycle, test_threads_spawn_delay)
/* Spawn thread with a delay. 
Create a user thread with delay and check if the thread entry function is executed only after the timeout occurs. */
ZTEST_USER(threads_lifecycle, test_threads_spawn_delay)
{
	tp2 = 10;
	k_thread_create(&tdata, tstack, STACK_SIZE, thread_entry_delay,
			NULL, NULL, NULL, 0, K_USER, K_MSEC(120));
	k_msleep(100);
	zassert_true(tp2 == 10);
	k_msleep(100);
	zassert_true(tp2 == 100);
}