Lines Matching refs:testfd
340 int testfd[16]; in ATF_TEST_CASE_BODY() local
348 for (i = 0; i < nitems(testfd); i++) { in ATF_TEST_CASE_BODY()
350 testfd[i] = dup(STDERR_FILENO); in ATF_TEST_CASE_BODY()
351 ATF_REQUIRE(fd_is_valid(testfd[i])); in ATF_TEST_CASE_BODY()
375 nvlist_add_descriptor_array(src, "nvl/fd", testfd, nitems(testfd)); in ATF_TEST_CASE_BODY()
421 ATF_REQUIRE_EQ(num_items, nitems(testfd)); in ATF_TEST_CASE_BODY()
446 for (i = 0; i < nitems(testfd); i++) { in ATF_TEST_CASE_BODY()
447 close(testfd[i]); in ATF_TEST_CASE_BODY()
626 int *testfd; in ATF_TEST_CASE_BODY() local
640 testfd = (int*)malloc(sizeof(*testfd) * count); in ATF_TEST_CASE_BODY()
641 ATF_REQUIRE(testfd != NULL); in ATF_TEST_CASE_BODY()
643 testfd[i] = dup(STDERR_FILENO); in ATF_TEST_CASE_BODY()
644 ATF_REQUIRE(fd_is_valid(testfd[i])); in ATF_TEST_CASE_BODY()
647 nvlist_move_descriptor_array(nvl, key, testfd, count); in ATF_TEST_CASE_BODY()
655 ATF_REQUIRE(const_result == testfd); in ATF_TEST_CASE_BODY()