Lines Matching refs:test_path

53 static char test_path[TEST_PATH_LEN];  variable
75 gen_a_test_path(test_path); in gen_test_path()
126 if (shm_unlink(test_path) < 0) in scribble_object()
128 fd = shm_open(test_path, O_CREAT | O_EXCL | O_RDWR, 0777); in scribble_object()
310 fd = scribble_object(test_path, '1'); in ATF_TC_BODY()
323 ATF_REQUIRE_MSG(shm_unlink(test_path) != -1, in ATF_TC_BODY()
333 rc = shm_rename(SHM_ANON, test_path, 0); in ATF_TC_BODY()
347 rc = shm_rename(test_path, bad_path, 0); in ATF_TC_BODY()
351 rc = shm_rename(bad_path, test_path, 0); in ATF_TC_BODY()
363 rc = shm_rename(test_path, test_path2, 0); in ATF_TC_BODY()
378 rc = shm_rename(test_path, SHM_ANON, 0); in ATF_TC_BODY()
394 fd = scribble_object(test_path, expected_value); in ATF_TC_BODY()
402 ATF_REQUIRE_MSG(shm_rename(test_path, test_path2, 0) == 0, in ATF_TC_BODY()
421 fd_from = scribble_object(test_path, expected_value_from); in ATF_TC_BODY()
430 rc = shm_rename(test_path, test_path2, SHM_RENAME_NOREPLACE); in ATF_TC_BODY()
450 fd_from = scribble_object(test_path, expected_value_from); in ATF_TC_BODY()
459 ATF_REQUIRE_MSG(shm_rename(test_path, test_path2, in ATF_TC_BODY()
464 verify_object(test_path, expected_value_to); in ATF_TC_BODY()
477 fd_from = scribble_object(test_path, expected_value_from); in ATF_TC_BODY()
482 ATF_REQUIRE_MSG(shm_rename(test_path, test_path2, in ATF_TC_BODY()
499 fd = scribble_object(test_path, expected_value); in ATF_TC_BODY()
502 ATF_REQUIRE_MSG(shm_rename(test_path, test_path, 0) == 0, in ATF_TC_BODY()
505 verify_object(test_path, expected_value); in ATF_TC_BODY()
517 fd = scribble_object(test_path, 'd'); in ATF_TC_BODY()
526 rc = shm_rename(test_path, test_path2, INT_MIN); in ATF_TC_BODY()
541 fd = scribble_object(test_path, '1'); in ATF_TC_BODY()
544 fd = shm_open(test_path, O_RDONLY, 0777); in ATF_TC_BODY()
558 ATF_REQUIRE_MSG(shm_unlink(test_path) != -1, in ATF_TC_BODY()
572 fd = shm_open(test_path, O_RDONLY | O_CREAT, 0777); in ATF_TC_BODY()
585 ATF_REQUIRE_MSG(shm_unlink(test_path) != -1, in ATF_TC_BODY()
596 fd = shm_open(test_path, O_RDONLY | O_CREAT, 0777); in ATF_TC_BODY()
600 ATF_REQUIRE_MSG(shm_unlink(test_path) != -1, "shm_unlink failed: %d", in ATF_TC_BODY()
603 shm_open_should_fail(test_path, O_RDONLY, 0777, ENOENT); in ATF_TC_BODY()
619 shm_open_should_fail(test_path, O_WRONLY, 0777, EINVAL); in ATF_TC_BODY()
628 shm_open_should_fail(test_path, O_RDONLY | O_DIRECT, 0777, EINVAL); in ATF_TC_BODY()
681 fd = shm_open(test_path, O_RDONLY|O_CREAT, 0777); in ATF_TC_BODY()
685 shm_open_should_fail(test_path, O_RDONLY|O_CREAT|O_EXCL, in ATF_TC_BODY()
688 ATF_REQUIRE_MSG(shm_unlink(test_path) != -1, in ATF_TC_BODY()
701 fd = shm_open(test_path, O_RDWR | O_CREAT, 0777); in ATF_TC_BODY()
711 fd = shm_open(test_path, O_RDWR | O_TRUNC, 0777); in ATF_TC_BODY()
718 ATF_REQUIRE_MSG(shm_unlink(test_path) != -1, in ATF_TC_BODY()
921 desc = shm_open(test_path, O_EXCL | O_CREAT | O_RDWR, 0600); in ATF_TC_BODY()
924 ATF_REQUIRE_MSG(shm_unlink(test_path) == 0, in ATF_TC_BODY()
990 shm_unlink(test_path); in ATF_TC_BODY()
1007 fd = shm_open(test_path, O_CREAT | O_RDWR, 0600); in ATF_TC_BODY()
1024 fd = shm_open(test_path, O_CREAT | O_RDWR, 0600); in ATF_TC_BODY()
1029 ATF_REQUIRE(shm_unlink(test_path) == 0); in ATF_TC_BODY()
1031 fd = shm_open(test_path, O_CREAT | O_RDWR, 0660); in ATF_TC_BODY()
1036 ATF_REQUIRE(shm_unlink(test_path) == 0); in ATF_TC_BODY()
1038 fd = shm_open(test_path, O_CREAT | O_RDWR, 0666); in ATF_TC_BODY()
1043 ATF_REQUIRE(shm_unlink(test_path) == 0); in ATF_TC_BODY()
1202 fd = shm_open(test_path, O_RDONLY | O_CREAT, 0644); in ATF_TC_BODY()
1214 ATF_REQUIRE_MSG(shm_unlink(test_path) == 0, in ATF_TC_BODY()
1915 fd = shm_create_largepage(test_path, O_CREAT | O_RDWR, psind, in ATF_TC_BODY()
1926 fd = shm_open(test_path, O_RDWR, 0); in ATF_TC_BODY()
1942 ATF_REQUIRE_MSG(shm_unlink(test_path) == 0, in ATF_TC_BODY()