Lines Matching defs:TEST_PATH
85 #define TEST_PATH "/tmp/posixsem_regression_test"
269 if (ksem_open(&id, TEST_PATH, O_CREAT, 0777, 1) < 0) {
275 if (ksem_unlink(TEST_PATH) < 0) {
280 ksem_open_should_fail(TEST_PATH, O_RDONLY, 0777, 1, ENOENT);
296 ksem_open_should_fail(TEST_PATH, O_RDONLY | O_DIRECT, 0777, 1, EINVAL);
304 (void)ksem_unlink(TEST_PATH);
306 ksem_open_should_fail(TEST_PATH, O_CREAT, 0777, UINT_MAX, EINVAL);
344 if (ksem_open(&id, TEST_PATH, O_CREAT, 0777, 1) < 0) {
350 ksem_open_should_fail(TEST_PATH, O_CREAT | O_EXCL, 0777, 1, EEXIST);
352 ksem_unlink(TEST_PATH);
390 if (ksem_open(&id, TEST_PATH, O_CREAT, 0777, 1) < 0) {
398 ksem_unlink(TEST_PATH);
457 if (ksem_open(&id, TEST_PATH, O_CREAT, 0777, 1) < 0) {
467 if (ksem_unlink(TEST_PATH) < 0) {
603 if (ksem_open(&id, TEST_PATH, O_CREAT | O_EXCL, 0777, 1) < 0) {
607 if (ksem_unlink(TEST_PATH) < 0) {
1040 if (ksem_open(&id, TEST_PATH, 0, 0, 0) < 0)
1055 if (ksem_open(&id, TEST_PATH, O_CREAT, 0777, 0)) {
1062 ksem_unlink(TEST_PATH);
1069 ksem_unlink(TEST_PATH);
1094 ksem_unlink(TEST_PATH);
1272 snprintf(buffer, sizeof(buffer), "%s%d", TEST_PATH, i);
1318 snprintf(buffer, sizeof(buffer), "%s%d", TEST_PATH, i);
1428 snprintf(buffer, sizeof(buffer), "%s%d", TEST_PATH, i);