blob: 679795d10f491da3325589696be909fd8819c2b2 [file] [log] [blame]
/*
* Copyright (c) 2018 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/ztest.h>
extern bool fdtable_fd_is_initialized(int fd);
ZTEST(posix_apis, test_fdtable_init)
{
/* ensure that the the stdin, stdout, and stderr fdtable entries are initialized */
zassert_true(fdtable_fd_is_initialized(0));
zassert_true(fdtable_fd_is_initialized(1));
zassert_true(fdtable_fd_is_initialized(2));
}
ZTEST_SUITE(posix_apis, NULL, NULL, NULL, NULL, NULL);