/* Show that threads can be aborted from interrupt context by itself. 
Spwan a thread, then enter ISR context in child thread and abort the child thread. Check if ISR completed and target thread was aborted. */
ZTEST(threads_lifecycle, test_abort_from_isr)
/* Show that threads can be aborted from interrupt context by itself. 
Spwan a thread, then enter ISR context in child thread and abort the child thread. Check if ISR completed and target thread was aborted. */
ZTEST(threads_lifecycle, test_abort_from_isr)
{
	isr_finished = false;
	k_thread_create(&tdata, tstack, STACK_SIZE, entry_abort_isr,
			NULL, NULL, NULL, 0, 0, K_NO_WAIT);
	k_thread_join(&tdata, K_FOREVER);
	zassert_true(isr_finished, "ISR did not complete");
	k_sem_give(&offload_sem);
}