/* * Copyright (c) 2022 Meta * * SPDX-License-Identifier: Apache-2.0 */ #include "_common.h" #ifdef CONFIG_POSIX_API #include #else #include #endif /** * @brief existence test for `` * * @see sys/select.h */ ZTEST(posix_headers, test_sys_select_h) { fd_set fds = {0}; zassert_not_equal(-1, FD_SETSIZE); if (IS_ENABLED(CONFIG_POSIX_DEVICE_IO)) { FD_CLR(0, &fds); FD_ISSET(0, &fds); FD_SET(0, &fds); FD_ZERO(&fds); zassert_not_null(pselect); zassert_not_null(select); } }