Lines Matching refs:testfd
338 int testfd[16]; in ATF_TEST_CASE_BODY() local
346 for (i = 0; i < nitems(testfd); i++) { in ATF_TEST_CASE_BODY()
348 testfd[i] = dup(STDERR_FILENO); in ATF_TEST_CASE_BODY()
349 ATF_REQUIRE(fd_is_valid(testfd[i])); in ATF_TEST_CASE_BODY()
373 nvlist_add_descriptor_array(src, "nvl/fd", testfd, nitems(testfd)); in ATF_TEST_CASE_BODY()
419 ATF_REQUIRE_EQ(num_items, nitems(testfd)); in ATF_TEST_CASE_BODY()
444 for (i = 0; i < nitems(testfd); i++) { in ATF_TEST_CASE_BODY()
445 close(testfd[i]); in ATF_TEST_CASE_BODY()
624 int *testfd; in ATF_TEST_CASE_BODY() local
638 testfd = (int*)malloc(sizeof(*testfd) * count); in ATF_TEST_CASE_BODY()
639 ATF_REQUIRE(testfd != NULL); in ATF_TEST_CASE_BODY()
641 testfd[i] = dup(STDERR_FILENO); in ATF_TEST_CASE_BODY()
642 ATF_REQUIRE(fd_is_valid(testfd[i])); in ATF_TEST_CASE_BODY()
645 nvlist_move_descriptor_array(nvl, key, testfd, count); in ATF_TEST_CASE_BODY()
653 ATF_REQUIRE(const_result == testfd); in ATF_TEST_CASE_BODY()