1 /*
2 * Copyright (c) 2017 Intel Corporation
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7 #include <zephyr/ztest.h>
8 #include "test_queue.h"
9
10 #ifdef CONFIG_64BIT
11 #define MAX_SZ 128
12 #else
13 #define MAX_SZ 96
14 #endif
15 K_HEAP_DEFINE(test_pool, MAX_SZ * 4 + 128);
16
17 /*test case main entry*/
queue_test_setup(void)18 void *queue_test_setup(void)
19 {
20 k_thread_heap_assign(k_current_get(), &test_pool);
21
22 return NULL;
23 }
24
25 ZTEST_SUITE(queue_api, NULL, queue_test_setup, NULL, NULL, NULL);
26 ZTEST_SUITE(queue_api_1cpu, NULL, queue_test_setup,
27 ztest_simple_1cpu_before, ztest_simple_1cpu_after, NULL);
28