Lines Matching refs:g_testfile
34 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);
109 "Trying to write: %s", g_testfile);
114 "Trying to read: %s", g_testfile);
120 "Trying to mmaped read/write: %s", g_testfile);
122 T_ASSERT_POSIX_SUCCESS(close(fd), "Close test file: %s", g_testfile);
125 fd = open(g_testfile, O_EVTONLY, 0666);
126 T_ASSERT_NE(fd, -1, "Open test fi1e in 'O_EVTONLY': %s", g_testfile);
131 "Trying to read: %s", g_testfile);
139 T_ASSERT_NE(err, -1, "Perform getattrlist: %s", g_testfile);
143 NOTE_WRITE, 0, (void *)g_testfile);
154 T_ASSERT_POSIX_SUCCESS(close(fd), "Close test file: %s", g_testfile);