Lines Matching refs:TEST_PATH

55 #define	TEST_PATH	"/tmp/posixsem_regression_test"  macro
239 if (ksem_open(&id, TEST_PATH, O_CREAT, 0777, 1) < 0) { in open_after_unlink()
245 if (ksem_unlink(TEST_PATH) < 0) { in open_after_unlink()
250 ksem_open_should_fail(TEST_PATH, O_RDONLY, 0777, 1, ENOENT); in open_after_unlink()
266 ksem_open_should_fail(TEST_PATH, O_RDONLY | O_DIRECT, 0777, 1, EINVAL); in open_extra_flags()
274 (void)ksem_unlink(TEST_PATH); in open_bad_value()
276 ksem_open_should_fail(TEST_PATH, O_CREAT, 0777, UINT_MAX, EINVAL); in open_bad_value()
314 if (ksem_open(&id, TEST_PATH, O_CREAT, 0777, 1) < 0) { in exclusive_create_existing_semaphore()
320 ksem_open_should_fail(TEST_PATH, O_CREAT | O_EXCL, 0777, 1, EEXIST); in exclusive_create_existing_semaphore()
322 ksem_unlink(TEST_PATH); in exclusive_create_existing_semaphore()
360 if (ksem_open(&id, TEST_PATH, O_CREAT, 0777, 1) < 0) { in destroy_named_semaphore()
368 ksem_unlink(TEST_PATH); in destroy_named_semaphore()
427 if (ksem_open(&id, TEST_PATH, O_CREAT, 0777, 1) < 0) { in open_named_semaphore()
437 if (ksem_unlink(TEST_PATH) < 0) { in open_named_semaphore()
573 if (ksem_open(&id, TEST_PATH, O_CREAT | O_EXCL, 0777, 1) < 0) { in use_after_unlink_test()
577 if (ksem_unlink(TEST_PATH) < 0) { in use_after_unlink_test()
1010 if (ksem_open(&id, TEST_PATH, 0, 0, 0) < 0) in wait_twoproc_child()
1025 if (ksem_open(&id, TEST_PATH, O_CREAT, 0777, 0)) { in wait_twoproc_test()
1032 ksem_unlink(TEST_PATH); in wait_twoproc_test()
1039 ksem_unlink(TEST_PATH); in wait_twoproc_test()
1064 ksem_unlink(TEST_PATH); in wait_twoproc_test()
1242 snprintf(buffer, sizeof(buffer), "%s%d", TEST_PATH, i); in exhaust_named_child()
1288 snprintf(buffer, sizeof(buffer), "%s%d", TEST_PATH, i); in exhaust_named_sems()
1398 snprintf(buffer, sizeof(buffer), "%s%d", TEST_PATH, i); in fdlimit_named_sems()