1 /* 2 * Copyright (c) 2017 Intel Corporation 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #include <zephyr/ztest.h> 8 #include <zephyr/app_memory/partitions.h> 9 10 extern void test_mbedtls(void); 11 mbedtls_fn_setup(void)12void *mbedtls_fn_setup(void) 13 { 14 #ifdef CONFIG_USERSPACE 15 int ret = k_mem_domain_add_partition(&k_mem_domain_default, 16 &k_mbedtls_partition); 17 if (ret != 0) { 18 printk("Failed to add memory partition (%d)\n", ret); 19 k_oops(); 20 } 21 #endif 22 23 return NULL; 24 } 25 26 ZTEST_SUITE(mbedtls_fn, NULL, mbedtls_fn_setup, NULL, NULL, NULL); 27