Searched refs:expect_mode (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/tools/testing/selftests/fchmodat2/ |
H A D | fchmodat2_test.c | 46 int expect_mode(int dfd, const char *filename, mode_t expect_mode) in expect_mode() function 55 return (st.st_mode == expect_mode); in expect_mode() 69 if (!expect_mode(dfd, "regfile", 0100640)) in test_regfile() 79 if (!expect_mode(dfd, "regfile", 0100600)) in test_regfile() 97 if (!expect_mode(dfd, "regfile", 0100640)) in test_symlink() 101 if (!expect_mode(dfd, "symlink", 0120777)) in test_symlink() 114 if (ret == 0 && !expect_mode(dfd, "symlink", 0120600)) in test_symlink() 118 if (!expect_mode(dfd, "regfile", 0100640)) in test_symlink()
|