/* Spawn thread with higher priority. 
Create an user thread with priority greater than current thread and check its behavior. */
ZTEST(threads_lifecycle, test_threads_spawn_priority)
/* Spawn thread with higher priority. 
Create an user thread with priority greater than current thread and check its behavior. */
ZTEST(threads_lifecycle, test_threads_spawn_priority)
{
	spawn_prio = k_thread_priority_get(k_current_get()) - 1;
	k_thread_create(&tdata, tstack, STACK_SIZE, thread_entry_priority,
			NULL, NULL, NULL, spawn_prio, K_USER, K_NO_WAIT);
	k_msleep(100);
}