/* Thread creation with priority is higher than current thread. 
_handler_k_thread_create validation.  */
ZTEST(mem_protect_kobj, test_create_new_higher_prio_thread_from_user)
/* Thread creation with priority is higher than current thread. 
_handler_k_thread_create validation.  */
ZTEST(mem_protect_kobj, test_create_new_higher_prio_thread_from_user)
{
	set_fault_valid(false);
	k_thread_access_grant(&child_thread,
			      &extra_thread,
			      &extra_stack);
	k_thread_create(&child_thread,
			child_stack,
			KOBJECT_STACK_SIZE,
			higher_prio_from_user_child,
			NULL, NULL, NULL,
			0, K_USER, K_NO_WAIT);
	k_thread_join(&child_thread, K_FOREVER);
}