Searched refs:testdir (Results 1 – 5 of 5) sorted by relevance
| /xnu-11417.101.15/tests/vfs/ |
| H A D | resolve_beneath.c | 40 static char *testdir = NULL; variable 78 T_ASSERT_POSIX_NOTNULL((testdir = mkdtemp(template)), "Creating test root directory"); in setup() 79 …T_ASSERT_POSIX_SUCCESS((testdir_fd = open(testdir, O_SEARCH, 0777)), "Opening test root directory … in setup() 82 T_ASSERT_POSIX_SUCCESS(mkdirat(testdir_fd, TEST_DIR, 0777), "Creating %s/%s", testdir, TEST_DIR); in setup() 83 … openat(testdir_fd, TEST_DIR, O_SEARCH, 0777)), "Opening test directory %s/%s", testdir, TEST_DIR); in setup() 84 …T_ASSERT_POSIX_SUCCESS(mkdirat(testdir_fd, NESTED_DIR, 0777), "Creating %s/%s", testdir, NESTED_DI… in setup() 87 …(testdir_fd, OUTSIDE_FILE, O_CREAT | O_RDWR, 0777)), "Creating file %s/%s", testdir, OUTSIDE_FILE); in setup() 90 …at(testdir_fd, INSIDE_FILE, O_CREAT | O_RDWR, 0777)), "Creating file %s/%s", testdir, INSIDE_FILE); in setup() 93 …at(testdir_fd, NESTED_FILE, O_CREAT | O_RDWR, 0777)), "Creating file %s/%s", testdir, NESTED_FILE); in setup() 97 …nkat(SYMLINK_FROM, testdir_fd, SYMLINK), "Creating symlink %s/%s -> %s", testdir, SYMLINK, SYMLINK… in setup() [all …]
|
| H A D | statfs_ext.c | 43 static char *testdir = NULL; variable 65 if (testdir) { in cleanup() 66 unmount(testdir, MNT_FORCE); in cleanup() 67 rmdir(testdir); in cleanup() 145 T_ASSERT_POSIX_NOTNULL((testdir = mkdtemp(template)), "Creating test root dir"); 146 …_SUCCESS(mount(FSTYPE_DEVFS, testdir, MNT_RDONLY, NULL), "Mounting temporary %s mount using path %… 152 statfs_compare(testdir, &sfs_ext, TEST_MODE_FSTATFS, STATFS_EXT_NOBLOCK | 0x8, EINVAL); 167 statfs_compare(testdir, &sfs_ext, TEST_MODE_FSTATFS, STATFS_EXT_NOBLOCK, 0);
|
| H A D | getattrlist_mountextflags.c | 54 static char *testdir = NULL; variable 162 if (testdir) { in cleanup() 163 rmdir(testdir); in cleanup() 228 T_ASSERT_POSIX_NOTNULL((testdir = mkdtemp(template)), "Creating test root dir"); 231 snprintf(image_path, sizeof(image_path), "%s/msdos.dmg", testdir);
|
| H A D | longpaths.c | 212 char *testdir = setup_test_dir("set_policy_test"); variable 250 removefile(testdir, NULL, REMOVEFILE_RECURSIVE | REMOVEFILE_ALLOW_LONG_PATHS); 251 free(testdir); 1088 char *testdir = setup_test_dir(#name);\ 1108 removefile(testdir, NULL, REMOVEFILE_RECURSIVE | REMOVEFILE_ALLOW_LONG_PATHS);\ 1109 free(testdir);\
|
| /xnu-11417.101.15/tests/ |
| H A D | file_leases.c | 366 char *testdir = argv[1]; variable 370 dir_fd = open(testdir, O_RDONLY); 371 T_ASSERT_NE(dir_fd, -1, "Open test dir in O_RDONLY: %s", testdir); 379 T_ASSERT_NE(err, -1, "Acquire read lease: %s", testdir); 383 (NOTE_LEASE_DOWNGRADE | NOTE_LEASE_RELEASE), 0, (void *)testdir); 400 T_ASSERT_NE(err, -1, "Release lease: %s", testdir);
|