Searched refs:test_fd (Results 1 – 3 of 3) sorted by relevance
| /xnu-12377.61.12/tests/vfs/ |
| H A D | resolve_beneath.c | 50 static int testdir_fd = -1, test_fd = -1; variable 108 testdir_fd = test_fd = -1; in setup() 117 …T_ASSERT_POSIX_SUCCESS((test_fd = openat(testdir_fd, TEST_DIR, O_SEARCH, 0777)), "Opening test dir… in setup() 141 if (test_fd != -1) { in cleanup() 142 close(test_fd); in cleanup() 179 …T_EXPECT_POSIX_SUCCESS((fd = openat(test_fd, "inside_file.txt", O_RDONLY | O_RESOLVE_BENEATH, 0777… 185 …T_EXPECT_POSIX_FAILURE(openat(test_fd, "symlink", O_RDONLY | O_RESOLVE_BENEATH), ENOTCAPABLE, "Tes… 188 …T_EXPECT_POSIX_FAILURE(openat(test_fd, "../outside_file.txt", O_RDONLY | O_RESOLVE_BENEATH), ENOTC… 191 …T_EXPECT_POSIX_SUCCESS((fd = openat(test_fd, "nested/nested_file.txt", O_RDONLY | O_RESOLVE_BENEAT… 197 …T_EXPECT_POSIX_SUCCESS((fd = openat(test_fd, "symlink_to_nested", O_RDONLY | O_RESOLVE_BENEATH, 07… [all …]
|
| H A D | resolve_namespace.c | 44 static int testdir_fd = -1, test_fd = -1; variable 88 if (test_fd != -1) { in cleanup() 89 close(test_fd); in cleanup() 111 testdir_fd = test_fd = -1; in setup() 121 …T_ASSERT_POSIX_SUCCESS((test_fd = openat(testdir_fd, TEST_DIR, O_SEARCH, 0777)), "Opening test dir… in setup()
|
| /xnu-12377.61.12/tests/ |
| H A D | posix_spawn_file_actions.c | 94 int test_fd; variable 100 test_fd = open(TEST_PATH, O_RDONLY | O_CLOEXEC); 101 T_ASSERT_POSIX_SUCCESS(test_fd, "open " TEST_PATH); 103 ret = posix_spawn_file_actions_addfchdir(&file_actions, test_fd); 132 ret = close(test_fd);
|