Searched refs:g_testfile (Results 1 – 4 of 4) sorted by relevance
| /xnu-12377.41.6/tests/vfs/ |
| H A D | pwrite_appendonly.c | 51 static char g_testfile[MAXPATHLEN]; variable 58 (void)remove(g_testfile); in exit_cleanup() 77 snprintf(g_testfile, MAXPATHLEN, "%s/%s", g_testdir, TEST_FILE); in create_test_file() 80 fd = open(g_testfile, O_CREAT | O_RDWR, 0666); in create_test_file() 81 T_ASSERT_NE(fd, -1, "Create test fi1e: %s", g_testfile); in create_test_file() 97 err = chflags(g_testfile, UF_APPEND); 98 T_ASSERT_NE(err, -1, "Enable append-only on file: %s", g_testfile); 101 fd = open(g_testfile, O_RDWR | O_APPEND); 102 T_ASSERT_NE(fd, -1, "Open test fi1e in O_RDWR|O_APPEND: %s", g_testfile); 106 T_ASSERT_TRUE((ret == -1) && (errno == EPERM), "Write on append-only file: %s", g_testfile); [all …]
|
| H A D | o_search.c | 30 static char g_testfile[MAXPATHLEN]; variable 37 (void)unlink(g_testfile); in exit_cleanup() 60 snprintf(g_testfile, MAXPATHLEN, "%s/%s", tmpdir, TEST_FILE); 62 T_ASSERT_POSIX_SUCCESS(fd = open(g_testfile, O_CREAT | O_RDWR, 0644), NULL); 63 …T_ASSERT_POSIX_SUCCESS(retval = (int)write(fd, g_testfile, sizeof(g_testfile)), "Write: %s", g_tes… 64 T_ASSERT_POSIX_SUCCESS(close(fd), "Close test file: %s", g_testfile); 71 … "Trying to open directory O_EXEC: %s, tmpdir_fd = %d, errno = %d", g_testfile, tmpdir_fd, errno); 100 g_testfile, retval, errno); 105 g_testfile, retval, errno); 111 g_testfile, (long)mapped, errno); [all …]
|
| /xnu-12377.41.6/tests/ |
| H A D | iopolicy.c | 35 static char g_testfile[MAXPATHLEN]; variable 41 (void)remove(g_testfile); in exit_cleanup() 62 snprintf(g_testfile, MAXPATHLEN, "%s/%s", tmpdir, TEST_FILE); 65 fd = open(g_testfile, O_CREAT | O_RDWR, 0666); 66 T_ASSERT_NE(fd, -1, "Create test file: %s", g_testfile); 69 err = (int)write(fd, g_testfile, sizeof(g_testfile)); 70 T_ASSERT_NE(err, -1, "Write: %s", g_testfile); 72 T_ASSERT_POSIX_SUCCESS(close(fd), "Close test file: %s", g_testfile); 110 fd = open(g_testfile, O_RDWR | O_EVTONLY, 0666); 111 T_ASSERT_NE(fd, -1, "Open test fi1e in 'O_RDW|O_EVTONLY': %s", g_testfile); [all …]
|
| H A D | file_leases.c | 31 static char g_testfile[MAXPATHLEN]; variable 47 (void)remove(g_testfile); in exit_cleanup() 83 snprintf(g_testfile, MAXPATHLEN, "%s/%s", g_testdir, TEST_LEASE_FILE); in create_test_file() 86 fd = open(g_testfile, O_CREAT | O_RDWR, 0666); in create_test_file() 87 T_ASSERT_NE(fd, -1, "Create test fi1e: %s", g_testfile); in create_test_file() 101 char *args[] = {g_testfile, g_testdir, NULL}; in run_helpers() 660 fd = open(g_testfile, O_RDONLY, 0666); 661 T_ASSERT_NE(fd, -1, "Open test fi1e in O_RDONLY: %s", g_testfile); 665 T_ASSERT_NE(err, -1, "Acquire write lease: %s", g_testfile); 669 T_ASSERT_EQ(err, F_WRLCK, "Retrieve lease: %s", g_testfile); [all …]
|