Home
last modified time | relevance | path

Searched refs:g_testfile (Results 1 – 3 of 3) sorted by relevance

/xnu-8792.81.2/tests/
H A Diopolicy.c34 static char g_testfile[MAXPATHLEN]; variable
40 (void)remove(g_testfile); in exit_cleanup()
61 snprintf(g_testfile, MAXPATHLEN, "%s/%s", tmpdir, TEST_FILE);
64 fd = open(g_testfile, O_CREAT | O_RDWR, 0666);
65 T_ASSERT_NE(fd, -1, "Create test file: %s", g_testfile);
68 err = (int)write(fd, g_testfile, sizeof(g_testfile));
69 T_ASSERT_NE(err, -1, "Write: %s", g_testfile);
71 T_ASSERT_POSIX_SUCCESS(close(fd), "Close test file: %s", g_testfile);
103 fd = open(g_testfile, O_RDWR | O_EVTONLY, 0666);
104 T_ASSERT_NE(fd, -1, "Open test fi1e in 'O_RDW|O_EVTONLY': %s", g_testfile);
[all …]
H A Dfile_leases.c30 static char g_testfile[MAXPATHLEN]; variable
46 (void)remove(g_testfile); in exit_cleanup()
82 snprintf(g_testfile, MAXPATHLEN, "%s/%s", g_testdir, TEST_LEASE_FILE); in create_test_file()
85 fd = open(g_testfile, O_CREAT | O_RDWR, 0666); in create_test_file()
86 T_ASSERT_NE(fd, -1, "Create test fi1e: %s", g_testfile); in create_test_file()
100 char *args[] = {g_testfile, g_testdir, NULL}; in run_helpers()
659 fd = open(g_testfile, O_RDONLY, 0666);
660 T_ASSERT_NE(fd, -1, "Open test fi1e in O_RDONLY: %s", g_testfile);
664 T_ASSERT_NE(err, -1, "Acquire write lease: %s", g_testfile);
668 T_ASSERT_EQ(err, F_WRLCK, "Retrieve lease: %s", g_testfile);
[all …]
/xnu-8792.81.2/tests/vfs/
H A Do_search.c30 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 …]