/* Validate k_wakeup() 
Create 3 threads with main thread with priority 0 and other threads with -1, 0 ,+1 priority. Now -1 priority thread gets executed and it is made to sleep for 10 sec. Now, wake up the -1 priority thread and check if it starts executing. */
ZTEST(threads_scheduling, test_sleep_wakeup_preemptible)
/* Validate k_wakeup() 
Create 3 threads with main thread with priority 0 and other threads with -1, 0 ,+1 priority. Now -1 priority thread gets executed and it is made to sleep for 10 sec. Now, wake up the -1 priority thread and check if it starts executing. */
ZTEST(threads_scheduling, test_sleep_wakeup_preemptible)
{
	init_prio = 0;
	setup_threads();
	spawn_threads(10 * 1000);
	for (int i = 0; i < THREADS_NUM; i++) {
		zassert_true(tdata[i].executed == 0);
	}
	k_wakeup(tdata[0].tid);
	zassert_true(tdata[0].executed == 1);
	teardown_threads();
}