Lines Matching refs:g_testfile
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);
116 "Trying to write: %s", g_testfile);
121 "Trying to read: %s", g_testfile);
127 "Trying to mmaped read/write: %s", g_testfile);
129 T_ASSERT_POSIX_SUCCESS(close(fd), "Close test file: %s", g_testfile);
132 fd = open(g_testfile, O_EVTONLY, 0666);
133 T_ASSERT_NE(fd, -1, "Open test fi1e in 'O_EVTONLY': %s", g_testfile);
138 "Trying to read: %s", g_testfile);
146 T_ASSERT_NE(err, -1, "Perform getattrlist: %s", g_testfile);
150 NOTE_WRITE, 0, (void *)g_testfile);
161 T_ASSERT_POSIX_SUCCESS(close(fd), "Close test file: %s", g_testfile);