/* Validate allocation and free failure when thread's resource pool is not assigned. 
When a thread's resource pool is not assigned, alloc memory will fail. */
ZTEST(mheap_api, test_malloc_in_thread)
/* Validate allocation and free failure when thread's resource pool is not assigned. 
When a thread's resource pool is not assigned, alloc memory will fail. */
ZTEST(mheap_api, test_malloc_in_thread)
{
	if (!IS_ENABLED(CONFIG_MULTITHREADING)) {
		return;
	}
	k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE,
			      thread_entry, NULL, NULL, NULL,
			      0, 0, K_NO_WAIT);
	k_sem_take(&thread_sem, K_FOREVER);
	k_thread_abort(tid);
}