Lines Matching refs:expected_flags
474 unsigned int old_flags = 0, new_flags = 0, expected_flags = 0; in TEST_F() local
520 expected_flags = old_flags; in TEST_F()
521 expected_flags |= MS_RDONLY; in TEST_F()
524 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
527 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
530 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
533 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
538 unsigned int old_flags = 0, new_flags = 0, expected_flags = 0; in TEST_F() local
552 expected_flags = old_flags; in TEST_F()
553 expected_flags |= MS_RDONLY; in TEST_F()
554 expected_flags |= MS_NOEXEC; in TEST_F()
555 expected_flags &= ~MS_NOATIME; in TEST_F()
556 expected_flags |= MS_RELATIME; in TEST_F()
559 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
574 unsigned int old_flags = 0, new_flags = 0, expected_flags = 0; in TEST_F() local
588 expected_flags = old_flags; in TEST_F()
589 expected_flags |= MS_RDONLY; in TEST_F()
590 expected_flags |= MS_NOEXEC; in TEST_F()
591 expected_flags &= ~MS_NOATIME; in TEST_F()
592 expected_flags |= MS_RELATIME; in TEST_F()
595 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
598 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
601 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
604 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
611 expected_flags &= ~MS_RDONLY; in TEST_F()
613 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
618 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
623 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
628 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
643 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
648 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
653 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
658 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
725 unsigned int old_flags1 = 0, old_flags2 = 0, new_flags = 0, expected_flags = 0; in TEST_F() local
742 expected_flags = old_flags2; in TEST_F()
743 expected_flags &= ~(MS_RDONLY | MS_NOEXEC | MS_NOATIME | MS_NOSUID); in TEST_F()
744 expected_flags |= MS_RELATIME; in TEST_F()
747 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
749 expected_flags = old_flags2; in TEST_F()
750 expected_flags &= ~(MS_RDONLY | MS_NOEXEC | MS_NOATIME | MS_NOSUID); in TEST_F()
751 expected_flags |= MS_RELATIME; in TEST_F()
754 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
759 unsigned int old_flags = 0, new_flags = 0, expected_flags = 0; in TEST_F() local
793 expected_flags = old_flags; in TEST_F()
794 expected_flags |= MS_NOATIME; in TEST_F()
795 expected_flags |= MS_NODIRATIME; in TEST_F()
798 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
801 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
804 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
807 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
815 expected_flags &= ~MS_NOATIME; in TEST_F()
816 expected_flags |= MS_RELATIME; in TEST_F()
819 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
822 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
825 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
828 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
836 expected_flags &= ~MS_RELATIME; in TEST_F()
839 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
842 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
845 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
848 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
856 expected_flags |= MS_NOATIME; in TEST_F()
858 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
861 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
864 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
867 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
873 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
876 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
879 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
882 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
888 expected_flags &= ~MS_NODIRATIME; in TEST_F()
891 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
894 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
897 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
900 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
906 unsigned int old_flags = 0, new_flags = 0, expected_flags = 0; in TEST_F() local
937 expected_flags = old_flags; in TEST_F()
938 expected_flags |= MS_RDONLY; in TEST_F()
939 expected_flags |= MS_NOSUID; in TEST_F()
941 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
946 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
951 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
956 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
1450 unsigned int old_flags = 0, new_flags = 0, expected_flags = 0; in TEST_F() local
1467 expected_flags = old_flags; in TEST_F()
1468 expected_flags |= ST_NOSYMFOLLOW; in TEST_F()
1471 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
1474 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
1477 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
1480 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
1491 expected_flags &= ~ST_NOSYMFOLLOW; in TEST_F()
1493 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
1496 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
1499 ASSERT_EQ(new_flags, expected_flags); in TEST_F()
1502 ASSERT_EQ(new_flags, expected_flags); in TEST_F()