1 /* 2 * Copyright (c) 2023 Legrand North America, LLC. 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #include <stdio.h> /* NULL */ 8 #include <zephyr/called_API.h> 9 #include <zephyr/code_under_test.h> 10 11 code_under_test(void)12int code_under_test(void) 13 { 14 int result = 0; 15 16 for (int i = 0; i < 2; ++i) { 17 const struct called_API_info *called_API = NULL; 18 19 result = called_API_open(&called_API); 20 if (result != 0) { 21 break; 22 } 23 24 result = called_API_close(called_API); 25 if (result != 0) { 26 break; 27 } 28 29 } 30 31 return result; 32 } 33