Lines Matching defs:test_path
48 static char test_path[TEST_PATH_LEN];
54 snprintf(test_path, sizeof(test_path), "%s/tmp.XXXXXX",
56 test_path[sizeof(test_path) - 1] = '\0';
57 ATF_REQUIRE_MSG(mkstemp(test_path) != -1,
59 ATF_REQUIRE_MSG(unlink(test_path) == 0,
105 fd = shm_open(test_path, O_CREAT|O_EXCL|O_RDWR, 0777);
107 if (shm_unlink(test_path) < 0)
109 fd = shm_open(test_path, O_CREAT | O_EXCL | O_RDWR, 0777);
148 ATF_REQUIRE_MSG(shm_unlink(test_path) != -1,
163 fd = shm_open(test_path, O_RDONLY, 0777);
177 ATF_REQUIRE_MSG(shm_unlink(test_path) != -1,
191 fd = shm_open(test_path, O_RDONLY | O_CREAT, 0777);
204 ATF_REQUIRE_MSG(shm_unlink(test_path) != -1,
215 fd = shm_open(test_path, O_RDONLY | O_CREAT, 0777);
219 ATF_REQUIRE_MSG(shm_unlink(test_path) != -1, "shm_unlink failed: %d",
222 shm_open_should_fail(test_path, O_RDONLY, 0777, ENOENT);
238 shm_open_should_fail(test_path, O_WRONLY, 0777, EINVAL);
247 shm_open_should_fail(test_path, O_RDONLY | O_DIRECT, 0777, EINVAL);
300 fd = shm_open(test_path, O_RDONLY|O_CREAT, 0777);
304 shm_open_should_fail(test_path, O_RDONLY|O_CREAT|O_EXCL,
307 ATF_REQUIRE_MSG(shm_unlink(test_path) != -1,
320 fd = shm_open(test_path, O_RDWR | O_CREAT, 0777);
330 fd = shm_open(test_path, O_RDWR | O_TRUNC, 0777);
337 ATF_REQUIRE_MSG(shm_unlink(test_path) != -1,
540 desc = shm_open(test_path, O_EXCL | O_CREAT | O_RDWR, 0600);
543 ATF_REQUIRE_MSG(shm_unlink(test_path) == 0,
609 shm_unlink(test_path);