Lines Matching refs:path_entry
2516 #define for_each_path(path_list, path_entry, i) \ argument
2517 for (i = 0, path_entry = *path_list[i]; path_list[i]; \
2518 path_entry = *path_list[++i])
2648 const char *path_entry; in TEST_F_FORK() local
2657 for_each_path(lower_base_files, path_entry, i) { in TEST_F_FORK()
2658 ASSERT_EQ(0, test_open(path_entry, O_RDONLY)); in TEST_F_FORK()
2659 ASSERT_EQ(EACCES, test_open(path_entry, O_WRONLY)); in TEST_F_FORK()
2661 for_each_path(lower_base_directories, path_entry, i) { in TEST_F_FORK()
2662 ASSERT_EQ(EACCES, test_open(path_entry, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
2664 for_each_path(lower_sub_files, path_entry, i) { in TEST_F_FORK()
2665 ASSERT_EQ(0, test_open(path_entry, O_RDONLY)); in TEST_F_FORK()
2666 ASSERT_EQ(EACCES, test_open(path_entry, O_WRONLY)); in TEST_F_FORK()
2669 for_each_path(upper_base_files, path_entry, i) { in TEST_F_FORK()
2670 ASSERT_EQ(0, test_open(path_entry, O_RDONLY)); in TEST_F_FORK()
2671 ASSERT_EQ(EACCES, test_open(path_entry, O_WRONLY)); in TEST_F_FORK()
2673 for_each_path(upper_base_directories, path_entry, i) { in TEST_F_FORK()
2674 ASSERT_EQ(EACCES, test_open(path_entry, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
2676 for_each_path(upper_sub_files, path_entry, i) { in TEST_F_FORK()
2677 ASSERT_EQ(0, test_open(path_entry, O_RDONLY)); in TEST_F_FORK()
2678 ASSERT_EQ(EACCES, test_open(path_entry, O_WRONLY)); in TEST_F_FORK()
2686 for_each_path(merge_base_files, path_entry, i) { in TEST_F_FORK()
2687 ASSERT_EQ(0, test_open(path_entry, O_RDWR)); in TEST_F_FORK()
2689 for_each_path(merge_base_directories, path_entry, i) { in TEST_F_FORK()
2690 ASSERT_EQ(0, test_open(path_entry, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
2692 for_each_path(merge_sub_files, path_entry, i) { in TEST_F_FORK()
2693 ASSERT_EQ(0, test_open(path_entry, O_RDWR)); in TEST_F_FORK()
2703 for_each_path(merge_base_files, path_entry, i) { in TEST_F_FORK()
2704 ASSERT_EQ(0, test_open(path_entry, O_RDWR)); in TEST_F_FORK()
2706 for_each_path(merge_base_directories, path_entry, i) { in TEST_F_FORK()
2707 ASSERT_EQ(0, test_open(path_entry, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
2709 for_each_path(merge_sub_files, path_entry, i) { in TEST_F_FORK()
2710 ASSERT_EQ(0, test_open(path_entry, O_RDWR)); in TEST_F_FORK()
2720 for_each_path(lower_base_files, path_entry, i) { in TEST_F_FORK()
2721 ASSERT_EQ(EACCES, test_open(path_entry, O_RDONLY)); in TEST_F_FORK()
2724 for_each_path(upper_base_files, path_entry, i) { in TEST_F_FORK()
2725 ASSERT_EQ(EACCES, test_open(path_entry, O_RDONLY)); in TEST_F_FORK()
2728 for_each_path(merge_base_files, path_entry, i) { in TEST_F_FORK()
2729 ASSERT_EQ(EACCES, test_open(path_entry, O_RDWR)); in TEST_F_FORK()
2731 for_each_path(merge_base_directories, path_entry, i) { in TEST_F_FORK()
2732 ASSERT_EQ(0, test_open(path_entry, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
2734 for_each_path(merge_sub_files, path_entry, i) { in TEST_F_FORK()
2735 ASSERT_EQ(0, test_open(path_entry, O_RDWR)); in TEST_F_FORK()
2745 for_each_path(lower_sub_files, path_entry, i) { in TEST_F_FORK()
2746 ASSERT_EQ(0, test_open(path_entry, O_RDONLY)); in TEST_F_FORK()
2747 ASSERT_EQ(EACCES, test_open(path_entry, O_WRONLY)); in TEST_F_FORK()
2750 for_each_path(upper_sub_files, path_entry, i) { in TEST_F_FORK()
2751 ASSERT_EQ(0, test_open(path_entry, O_RDONLY)); in TEST_F_FORK()
2752 ASSERT_EQ(EACCES, test_open(path_entry, O_WRONLY)); in TEST_F_FORK()
2755 for_each_path(merge_base_files, path_entry, i) { in TEST_F_FORK()
2756 ASSERT_EQ(EACCES, test_open(path_entry, O_RDWR)); in TEST_F_FORK()
2758 for_each_path(merge_base_directories, path_entry, i) { in TEST_F_FORK()
2759 ASSERT_EQ(EACCES, test_open(path_entry, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
2761 for_each_path(merge_sub_files, path_entry, i) { in TEST_F_FORK()
2762 ASSERT_EQ(0, test_open(path_entry, O_RDWR)); in TEST_F_FORK()
2772 for_each_path(lower_sub_files, path_entry, i) { in TEST_F_FORK()
2773 ASSERT_EQ(EACCES, test_open(path_entry, O_RDONLY)); in TEST_F_FORK()
2776 for_each_path(upper_sub_files, path_entry, i) { in TEST_F_FORK()
2777 ASSERT_EQ(EACCES, test_open(path_entry, O_RDONLY)); in TEST_F_FORK()
2780 for_each_path(merge_base_files, path_entry, i) { in TEST_F_FORK()
2781 ASSERT_EQ(EACCES, test_open(path_entry, O_RDWR)); in TEST_F_FORK()
2783 for_each_path(merge_base_directories, path_entry, i) { in TEST_F_FORK()
2784 ASSERT_EQ(EACCES, test_open(path_entry, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
2786 for_each_path(merge_sub_files, path_entry, i) { in TEST_F_FORK()
2787 ASSERT_EQ(0, test_open(path_entry, O_RDWR)); in TEST_F_FORK()