Home
last modified time | relevance | path

Searched refs:testdir (Results 1 – 16 of 16) sorted by relevance

/xnu-12377.1.9/tests/vfs/
H A Dfmount_funmount.c49 static char *testdir = NULL; variable
65 error = statfs(testdir, &statfs_buf); in verify_fstypename()
80 if (testdir) { in cleanup()
81 rmdir(testdir); in cleanup()
99 T_ASSERT_POSIX_NOTNULL((testdir = mkdtemp(template)), "Creating test root dir");
105 T_ASSERT_POSIX_SUCCESS((fd = open(testdir, O_DIRECTORY)), "Open test root dir: %s", testdir);
111 T_ASSERT_POSIX_SUCCESS((fd = open(testdir, O_DIRECTORY)), "Open test root dir: %s", testdir);
112 …T_ASSERT_POSIX_SUCCESS(funmount(fd, MNT_FORCE), "Unmounting %s using funmount(fd = %d)", testdir, …
H A Ddirentries_permissions.c41 static char *testdir = NULL; variable
74 if (rmdir(testdir)) { in cleanup()
75 T_FAIL("Unable to remove the test directory (%s)", testdir); in cleanup()
98 T_ASSERT_POSIX_NOTNULL((testdir = mkdtemp(template)), "Creating test root dir");
101 snprintf(dir1, sizeof(dir1), "%s/%s", testdir, "dir1");
102 snprintf(dir2, sizeof(dir2), "%s/%s", testdir, "dir2");
138 T_ASSERT_POSIX_NOTNULL((testdir = mkdtemp(template)), "Creating test root dir");
141 T_ASSERT_POSIX_SUCCESS(chdir(testdir), "Changing directory %s", testdir);
144 snprintf(dir1, sizeof(dir1), "%s/%s", testdir, "dir1");
145 snprintf(dir2, sizeof(dir2), "%s/%s", testdir, "dir2");
H A Dstatfs_ext.c43 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 Dopen_symlink.c44 static char *testdir = NULL; variable
63 if (testdir) { in cleanup()
64 rmdir(testdir); in cleanup()
82 T_ASSERT_POSIX_NOTNULL((testdir = mkdtemp(template)), "Creating test root dir");
85 snprintf(file, sizeof(file), "%s/%s", testdir, "file");
86 snprintf(sym, sizeof(sym), "%s/%s", testdir, "symlink");
H A Dunlinkat_nodeletebusy.c48 static char *testdir = NULL; variable
64 if (testdir) { in cleanup()
65 rmdir(testdir); in cleanup()
81 T_ASSERT_POSIX_NOTNULL((testdir = mkdtemp(template)), "Creating test root dir");
84 snprintf(file, sizeof(file), "%s/%s", testdir, "file");
H A Dopen_unique.c40 static char *testdir = NULL; variable
65 if (rmdir(testdir)) { in cleanup()
66 T_FAIL("Unable to remove the test directory (%s)", testdir); in cleanup()
83 T_ASSERT_POSIX_NOTNULL((testdir = mkdtemp(template)), "Creating test root directory");
84 …T_ASSERT_POSIX_SUCCESS((testdir_fd = open(testdir, O_SEARCH, 0777)), "Opening test root directory …
H A Dsandbox_fstat.c42 static char *testdir = NULL; variable
67 if (testdir) { in cleanup()
68 rmdir(testdir); in cleanup()
131 T_ASSERT_POSIX_NOTNULL((testdir = mkdtemp(template)), "Creating test root dir");
132 …T_ASSERT_POSIX_SUCCESS((fd = open(testdir, O_SEARCH, 0777)), "Opening test root directory '%s'", t…
H A Dresolve_beneath.c45 static char *testdir = NULL; variable
108 T_ASSERT_POSIX_NOTNULL((testdir = mkdtemp(template)), "Creating test root directory"); in setup()
109 …T_ASSERT_POSIX_SUCCESS((testdir_fd = open(testdir, O_SEARCH, 0777)), "Opening test root directory … in setup()
112 T_ASSERT_POSIX_SUCCESS(mkdirat(testdir_fd, TEST_DIR, 0777), "Creating %s/%s", testdir, TEST_DIR); in setup()
113 … openat(testdir_fd, TEST_DIR, O_SEARCH, 0777)), "Opening test directory %s/%s", testdir, TEST_DIR); in setup()
114 …T_ASSERT_POSIX_SUCCESS(mkdirat(testdir_fd, NESTED_DIR, 0777), "Creating %s/%s", testdir, NESTED_DI… in setup()
117 …(testdir_fd, OUTSIDE_FILE, O_CREAT | O_RDWR, 0777)), "Creating file %s/%s", testdir, OUTSIDE_FILE); in setup()
120 …at(testdir_fd, INSIDE_FILE, O_CREAT | O_RDWR, 0777)), "Creating file %s/%s", testdir, INSIDE_FILE); in setup()
123 …at(testdir_fd, NESTED_FILE, O_CREAT | O_RDWR, 0777)), "Creating file %s/%s", testdir, NESTED_FILE); in setup()
127 …nkat(SYMLINK_FROM, testdir_fd, SYMLINK), "Creating symlink %s/%s -> %s", testdir, SYMLINK, SYMLINK… in setup()
[all …]
H A Dsandbox_appledouble_write.c49 static char *testdir = NULL; variable
77 if (testdir) { in cleanup()
78 unmount(testdir, MNT_FORCE); in cleanup()
79 rmdir(testdir); in cleanup()
117 T_ASSERT_POSIX_NOTNULL((testdir = mkdtemp(template)), "Creating test root dir");
118 …T_ASSERT_POSIX_SUCCESS((fd = open(testdir, O_SEARCH, 0777)), "Opening test root directory %s", tes…
H A Dopenbyid_stress.c49 static char *testdir = NULL; variable
75 if (testdir) { in cleanup()
76 rmdir(testdir); in cleanup()
109 T_ASSERT_POSIX_NOTNULL((testdir = mkdtemp(template)), "Creating test root dir");
111 snprintf(dir1, sizeof(dir1), "%s/%s", testdir, "dir1");
112 snprintf(dir2, sizeof(dir2), "%s/%s", testdir, "dir2");
H A Dnamed_fork_path.c41 static char *testdir = NULL; variable
74 if (testdir) { in cleanup()
75 rmdir(testdir); in cleanup()
112 T_ASSERT_POSIX_NOTNULL((testdir = mkdtemp(template)), "Creating test root dir");
113 …T_ASSERT_POSIX_SUCCESS((fd = open(testdir, O_SEARCH, 0777)), "Opening test root directory %s", tes…
H A Dlinkat_flags.c40 static char *testdir = NULL; variable
89 if (testdir) { in cleanup()
90 rmdir(testdir); in cleanup()
133 T_ASSERT_POSIX_NOTNULL((testdir = mkdtemp(template)), "Creating test root dir");
136 T_ASSERT_POSIX_SUCCESS((fd = open(testdir, O_SEARCH, 0777)), "Opening the test root directory");
138 T_ASSERT_POSIX_SUCCESS(close(fd), "Closing %s", testdir);
H A Dgetattrlist_mountextflags.c55 static char *testdir = NULL; variable
163 if (testdir) { in cleanup()
164 rmdir(testdir); in cleanup()
230 T_ASSERT_POSIX_NOTNULL((testdir = mkdtemp(template)), "Creating test root dir");
233 snprintf(image_path, sizeof(image_path), "%s/msdos.dmg", testdir);
H A Dresolve_namespace.c43 static char *testdir = NULL; variable
99 if (rmdir(testdir)) { in cleanup()
100 T_FAIL("Unable to remove the test directory (%s)", testdir); in cleanup()
115 T_ASSERT_POSIX_NOTNULL((testdir = mkdtemp(template)), "Creating test root directory"); in setup()
116 …T_ASSERT_POSIX_SUCCESS((testdir_fd = open(testdir, O_SEARCH, 0777)), "Opening test root directory … in setup()
H A Dlongpaths.c212 char *testdir = setup_test_dir("set_policy_test"); variable
250 removefile(testdir, NULL, REMOVEFILE_RECURSIVE | REMOVEFILE_ALLOW_LONG_PATHS);
251 free(testdir);
1094 char *testdir = setup_test_dir(#name);\
1114 removefile(testdir, NULL, REMOVEFILE_RECURSIVE | REMOVEFILE_ALLOW_LONG_PATHS);\
1115 free(testdir);\
/xnu-12377.1.9/tests/
H A Dfile_leases.c366 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);