1 /* 2 * Copyright (c) 2018 Intel Corporation 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #include <zephyr/ztest.h> 8 9 extern bool fdtable_fd_is_initialized(int fd); 10 ZTEST(posix_apis,test_fdtable_init)11ZTEST(posix_apis, test_fdtable_init) 12 { 13 /* ensure that the stdin, stdout, and stderr fdtable entries are initialized */ 14 zassert_true(fdtable_fd_is_initialized(0)); 15 zassert_true(fdtable_fd_is_initialized(1)); 16 zassert_true(fdtable_fd_is_initialized(2)); 17 } 18 19 ZTEST_SUITE(posix_apis, NULL, NULL, NULL, NULL, NULL); 20