Lines Matching refs:test_open
400 static int test_open(const char *const path, const int flags) in test_open() function
407 ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY)); in TEST_F_FORK()
408 ASSERT_EQ(0, test_open(file1_s1d1, O_RDONLY)); in TEST_F_FORK()
409 ASSERT_EQ(0, test_open(file2_s1d1, O_RDONLY)); in TEST_F_FORK()
410 ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY)); in TEST_F_FORK()
411 ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY)); in TEST_F_FORK()
412 ASSERT_EQ(0, test_open(file2_s1d2, O_RDONLY)); in TEST_F_FORK()
413 ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY)); in TEST_F_FORK()
414 ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY)); in TEST_F_FORK()
416 ASSERT_EQ(0, test_open(dir_s2d1, O_RDONLY)); in TEST_F_FORK()
417 ASSERT_EQ(0, test_open(file1_s2d1, O_RDONLY)); in TEST_F_FORK()
418 ASSERT_EQ(0, test_open(dir_s2d2, O_RDONLY)); in TEST_F_FORK()
419 ASSERT_EQ(0, test_open(file1_s2d2, O_RDONLY)); in TEST_F_FORK()
420 ASSERT_EQ(0, test_open(dir_s2d3, O_RDONLY)); in TEST_F_FORK()
421 ASSERT_EQ(0, test_open(file1_s2d3, O_RDONLY)); in TEST_F_FORK()
423 ASSERT_EQ(0, test_open(dir_s3d1, O_RDONLY)); in TEST_F_FORK()
424 ASSERT_EQ(0, test_open(dir_s3d2, O_RDONLY)); in TEST_F_FORK()
425 ASSERT_EQ(0, test_open(dir_s3d3, O_RDONLY)); in TEST_F_FORK()
708 ASSERT_EQ(0, test_open("/proc/self/ns/mnt", O_RDONLY)); in TEST_F_FORK()
712 ASSERT_EQ(EACCES, test_open("/", O_RDONLY)); in TEST_F_FORK()
713 ASSERT_EQ(EACCES, test_open("/dev", O_RDONLY)); in TEST_F_FORK()
714 ASSERT_EQ(0, test_open("/dev/null", O_RDONLY)); in TEST_F_FORK()
715 ASSERT_EQ(EACCES, test_open("/dev/full", O_RDONLY)); in TEST_F_FORK()
717 ASSERT_EQ(EACCES, test_open("/proc", O_RDONLY)); in TEST_F_FORK()
718 ASSERT_EQ(EACCES, test_open("/proc/self", O_RDONLY)); in TEST_F_FORK()
719 ASSERT_EQ(EACCES, test_open("/proc/self/ns", O_RDONLY)); in TEST_F_FORK()
725 ASSERT_EQ(0, test_open("/proc/self/ns/mnt", O_RDONLY)); in TEST_F_FORK()
787 ASSERT_EQ(EACCES, test_open("/", O_RDONLY)); in TEST_F_FORK()
788 ASSERT_EQ(0, test_open("/", O_RDONLY | O_PATH)); in TEST_F_FORK()
789 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY)); in TEST_F_FORK()
790 ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY | O_PATH)); in TEST_F_FORK()
791 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDONLY)); in TEST_F_FORK()
792 ASSERT_EQ(0, test_open(file1_s1d1, O_RDONLY | O_PATH)); in TEST_F_FORK()
794 ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY)); in TEST_F_FORK()
795 ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY)); in TEST_F_FORK()
796 ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY)); in TEST_F_FORK()
797 ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY)); in TEST_F_FORK()
800 ASSERT_EQ(EACCES, test_open(dir_s2d2, O_RDONLY)); in TEST_F_FORK()
801 ASSERT_EQ(0, test_open(dir_s2d2, O_RDONLY | O_PATH)); in TEST_F_FORK()
803 ASSERT_EQ(0, test_open(file1_s2d2, O_RDONLY)); in TEST_F_FORK()
842 ASSERT_EQ(0, test_open(file1_s1d1, O_WRONLY)); in TEST_F_FORK()
843 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDWR)); in TEST_F_FORK()
845 ASSERT_EQ(0, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
846 ASSERT_EQ(0, test_open(file1_s1d2, O_RDWR)); in TEST_F_FORK()
872 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDONLY)); in TEST_F_FORK()
873 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY)); in TEST_F_FORK()
874 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDWR)); in TEST_F_FORK()
875 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
878 ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY)); in TEST_F_FORK()
879 ASSERT_EQ(0, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
880 ASSERT_EQ(0, test_open(file1_s1d2, O_RDWR)); in TEST_F_FORK()
881 ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
884 ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY)); in TEST_F_FORK()
885 ASSERT_EQ(0, test_open(file1_s1d3, O_WRONLY)); in TEST_F_FORK()
886 ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR)); in TEST_F_FORK()
887 ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
928 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDONLY)); in TEST_F_FORK()
929 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY)); in TEST_F_FORK()
930 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDWR)); in TEST_F_FORK()
931 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
934 ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY)); in TEST_F_FORK()
935 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
936 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_RDWR)); in TEST_F_FORK()
937 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
940 ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY)); in TEST_F_FORK()
941 ASSERT_EQ(0, test_open(file1_s1d3, O_WRONLY)); in TEST_F_FORK()
943 ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR)); in TEST_F_FORK()
944 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
953 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDONLY)); in TEST_F_FORK()
954 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY)); in TEST_F_FORK()
955 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDWR)); in TEST_F_FORK()
956 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
959 ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY)); in TEST_F_FORK()
960 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
961 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_RDWR)); in TEST_F_FORK()
962 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
965 ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY)); in TEST_F_FORK()
966 ASSERT_EQ(0, test_open(file1_s1d3, O_WRONLY)); in TEST_F_FORK()
968 ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR)); in TEST_F_FORK()
969 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
978 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDONLY)); in TEST_F_FORK()
979 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY)); in TEST_F_FORK()
980 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDWR)); in TEST_F_FORK()
981 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
984 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_RDONLY)); in TEST_F_FORK()
985 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
986 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_RDWR)); in TEST_F_FORK()
987 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
990 ASSERT_EQ(EACCES, test_open(file1_s1d3, O_RDONLY)); in TEST_F_FORK()
991 ASSERT_EQ(0, test_open(file1_s1d3, O_WRONLY)); in TEST_F_FORK()
993 ASSERT_EQ(EACCES, test_open(file1_s1d3, O_RDWR)); in TEST_F_FORK()
994 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1146 ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR)); in TEST_F_FORK()
1147 ASSERT_EQ(EACCES, test_open(file2_s1d3, O_RDONLY)); in TEST_F_FORK()
1148 ASSERT_EQ(0, test_open(file2_s1d3, O_WRONLY)); in TEST_F_FORK()
1159 ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR)); in TEST_F_FORK()
1160 ASSERT_EQ(EACCES, test_open(file2_s1d3, O_RDONLY)); in TEST_F_FORK()
1161 ASSERT_EQ(0, test_open(file2_s1d3, O_WRONLY)); in TEST_F_FORK()
1170 ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR)); in TEST_F_FORK()
1171 ASSERT_EQ(EACCES, test_open(file2_s1d3, O_RDONLY)); in TEST_F_FORK()
1172 ASSERT_EQ(0, test_open(file2_s1d3, O_WRONLY)); in TEST_F_FORK()
1187 ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY)); in TEST_F_FORK()
1188 ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY)); in TEST_F_FORK()
1189 ASSERT_EQ(EACCES, test_open(file2_s1d3, O_RDONLY)); in TEST_F_FORK()
1190 ASSERT_EQ(EACCES, test_open(file2_s1d3, O_WRONLY)); in TEST_F_FORK()
1199 ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY)); in TEST_F_FORK()
1200 ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY)); in TEST_F_FORK()
1201 ASSERT_EQ(EACCES, test_open(file2_s1d3, O_WRONLY)); in TEST_F_FORK()
1202 ASSERT_EQ(EACCES, test_open(file2_s1d3, O_RDONLY)); in TEST_F_FORK()
1211 ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY)); in TEST_F_FORK()
1212 ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY)); in TEST_F_FORK()
1213 ASSERT_EQ(EACCES, test_open(file2_s1d3, O_WRONLY)); in TEST_F_FORK()
1214 ASSERT_EQ(EACCES, test_open(file2_s1d3, O_RDONLY)); in TEST_F_FORK()
1225 ASSERT_EQ(EACCES, test_open(file1_s1d3, O_RDONLY)); in TEST_F_FORK()
1226 ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY)); in TEST_F_FORK()
1227 ASSERT_EQ(EACCES, test_open(file2_s1d3, O_WRONLY)); in TEST_F_FORK()
1228 ASSERT_EQ(EACCES, test_open(file2_s1d3, O_RDONLY)); in TEST_F_FORK()
1246 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY)); in TEST_F_FORK()
1247 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1250 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
1252 ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1255 ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY)); in TEST_F_FORK()
1257 ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1280 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY)); in TEST_F_FORK()
1281 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1284 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
1286 ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1289 ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY)); in TEST_F_FORK()
1291 ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1301 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY)); in TEST_F_FORK()
1302 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1305 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
1307 ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1310 ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY)); in TEST_F_FORK()
1312 ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1331 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY)); in TEST_F_FORK()
1332 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1335 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
1337 ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1340 ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY)); in TEST_F_FORK()
1345 ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1363 ASSERT_EQ(EACCES, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1365 ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1367 ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY)); in TEST_F_FORK()
1378 ASSERT_EQ(EACCES, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1380 ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1382 ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY)); in TEST_F_FORK()
1426 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDONLY)); in TEST_F_FORK()
1427 ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY)); in TEST_F_FORK()
1435 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDONLY)); in TEST_F_FORK()
1436 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY)); in TEST_F_FORK()
1463 ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY)); in TEST_F_FORK()
1465 ASSERT_EQ(EACCES, test_open(dir_s2d1, O_RDONLY)); in TEST_F_FORK()
1467 ASSERT_EQ(EACCES, test_open(dir_s3d1, O_RDONLY)); in TEST_F_FORK()
1468 ASSERT_EQ(0, test_open(dir_s3d2, O_RDONLY)); in TEST_F_FORK()
1469 ASSERT_EQ(0, test_open(dir_s3d3, O_RDONLY)); in TEST_F_FORK()
1492 ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY)); in TEST_F_FORK()
1494 ASSERT_EQ(EACCES, test_open(dir_s2d1, O_RDONLY)); in TEST_F_FORK()
1496 ASSERT_EQ(0, test_open(dir_s3d1, O_RDONLY)); in TEST_F_FORK()
1497 ASSERT_EQ(0, test_open(dir_s3d2, O_RDONLY)); in TEST_F_FORK()
1498 ASSERT_EQ(0, test_open(dir_s3d3, O_RDONLY)); in TEST_F_FORK()
1521 ASSERT_EQ(0, test_open("/", O_RDONLY)); in TEST_F_FORK()
1522 ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY)); in TEST_F_FORK()
1531 ASSERT_EQ(EACCES, test_open("/", O_RDONLY)); in TEST_F_FORK()
1532 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY)); in TEST_F_FORK()
1551 ASSERT_EQ(EACCES, test_open("/", O_RDONLY)); in TEST_F_FORK()
1552 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY)); in TEST_F_FORK()
1579 ASSERT_EQ(0, test_open("s3d3", O_RDONLY)); in TEST_F_FORK()
1580 ASSERT_EQ(EACCES, test_open("/", O_RDONLY)); in TEST_F_FORK()
1668 ASSERT_EQ(0, test_open(file1_s1d1, O_RDONLY)); in TEST_F_FORK()
1669 ASSERT_EQ(EACCES, test_open(dir_s3d2, O_RDONLY)); in TEST_F_FORK()
1671 ASSERT_EQ(ENOENT, test_open(dir_s3d3, O_RDONLY)); in TEST_F_FORK()
1889 ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY)); in TEST_F_FORK()
1890 ASSERT_EQ(0, test_open(file1_s1d1, O_RDONLY)); in TEST_F_FORK()
1893 ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY)); in TEST_F_FORK()
1894 ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY)); in TEST_F_FORK()
1897 ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY)); in TEST_F_FORK()
1898 ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY)); in TEST_F_FORK()
3201 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_RDWR)); in TEST_F_FORK()
3202 ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY)); in TEST_F_FORK()
3244 ASSERT_EQ(0, test_open(file1_s1d2, O_RDWR)); in TEST_F_FORK()
3245 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDWR)); in TEST_F_FORK()
3347 EXPECT_EQ(0, test_open(file_r, O_RDONLY | O_TRUNC)); in TEST_F_FORK()
3348 EXPECT_EQ(EACCES, test_open(file_r, O_WRONLY | O_TRUNC)); in TEST_F_FORK()
3356 EXPECT_EQ(EACCES, test_open(file_w, O_RDONLY | O_TRUNC)); in TEST_F_FORK()
3357 EXPECT_EQ(0, test_open(file_w, O_WRONLY | O_TRUNC)); in TEST_F_FORK()
3365 EXPECT_EQ(EACCES, test_open(file_none, O_RDONLY | O_TRUNC)); in TEST_F_FORK()
3366 EXPECT_EQ(EACCES, test_open(file_none, O_WRONLY | O_TRUNC)); in TEST_F_FORK()
3427 EXPECT_EQ(0, test_open(file_rwt, O_RDONLY | O_TRUNC)); in TEST_F_FORK()
3428 EXPECT_EQ(0, test_open(file_rwt, O_WRONLY | O_TRUNC)); in TEST_F_FORK()
3432 EXPECT_EQ(EACCES, test_open(file_rw, O_RDONLY | O_TRUNC)); in TEST_F_FORK()
3433 EXPECT_EQ(EACCES, test_open(file_rw, O_WRONLY | O_TRUNC)); in TEST_F_FORK()
3441 EXPECT_EQ(0, test_open(file_rt, O_RDONLY | O_TRUNC)); in TEST_F_FORK()
3442 EXPECT_EQ(EACCES, test_open(file_rt, O_WRONLY | O_TRUNC)); in TEST_F_FORK()
3446 EXPECT_EQ(EACCES, test_open(file_t, O_RDONLY | O_TRUNC)); in TEST_F_FORK()
3447 EXPECT_EQ(EACCES, test_open(file_t, O_WRONLY | O_TRUNC)); in TEST_F_FORK()
3451 EXPECT_EQ(EACCES, test_open(file_none, O_RDONLY | O_TRUNC)); in TEST_F_FORK()
3452 EXPECT_EQ(EACCES, test_open(file_none, O_WRONLY | O_TRUNC)); in TEST_F_FORK()
3459 EXPECT_EQ(EACCES, test_open(file_in_dir_t, O_RDONLY | O_TRUNC)); in TEST_F_FORK()
3460 EXPECT_EQ(EACCES, test_open(file_in_dir_t, O_WRONLY | O_TRUNC)); in TEST_F_FORK()
3795 ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY)); in TEST_F_FORK()
3796 ASSERT_EQ(0, test_open(file1_s1d1, O_RDONLY)); in TEST_F_FORK()
3797 ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY)); in TEST_F_FORK()
3798 ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY)); in TEST_F_FORK()
3799 ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY)); in TEST_F_FORK()
3800 ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY)); in TEST_F_FORK()
3802 ASSERT_EQ(0, test_open(dir_s2d1, O_RDONLY)); in TEST_F_FORK()
3803 ASSERT_EQ(0, test_open(file1_s2d1, O_RDONLY)); in TEST_F_FORK()
3804 ASSERT_EQ(0, test_open(dir_s2d2, O_RDONLY)); in TEST_F_FORK()
3805 ASSERT_EQ(0, test_open(file1_s2d2, O_RDONLY)); in TEST_F_FORK()
3806 ASSERT_EQ(ENOENT, test_open(dir_s2d3, O_RDONLY)); in TEST_F_FORK()
3807 ASSERT_EQ(ENOENT, test_open(file1_s2d3, O_RDONLY)); in TEST_F_FORK()
3809 ASSERT_EQ(0, test_open(bind_dir_s1d3, O_RDONLY)); in TEST_F_FORK()
3810 ASSERT_EQ(0, test_open(bind_file1_s1d3, O_RDONLY)); in TEST_F_FORK()
3812 ASSERT_EQ(0, test_open(dir_s3d1, O_RDONLY)); in TEST_F_FORK()
3873 ASSERT_EQ(0, test_open(file1_s1d1, O_RDONLY)); in TEST_F_FORK()
3874 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY)); in TEST_F_FORK()
3875 ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
3877 ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY)); in TEST_F_FORK()
3878 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
3879 ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
3882 ASSERT_EQ(0, test_open(file1_s2d1, O_RDWR)); in TEST_F_FORK()
3883 ASSERT_EQ(0, test_open(dir_s2d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
3885 ASSERT_EQ(0, test_open(file1_s2d2, O_RDWR)); in TEST_F_FORK()
3886 ASSERT_EQ(0, test_open(dir_s2d2, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
3895 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDONLY)); in TEST_F_FORK()
3896 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY)); in TEST_F_FORK()
3897 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
3899 ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY)); in TEST_F_FORK()
3900 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
3901 ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
3904 ASSERT_EQ(EACCES, test_open(file1_s2d1, O_RDONLY)); in TEST_F_FORK()
3905 ASSERT_EQ(EACCES, test_open(file1_s2d1, O_WRONLY)); in TEST_F_FORK()
3906 ASSERT_EQ(EACCES, test_open(dir_s2d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
3908 ASSERT_EQ(0, test_open(file1_s2d2, O_RDWR)); in TEST_F_FORK()
3909 ASSERT_EQ(0, test_open(dir_s2d2, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
3910 ASSERT_EQ(0, test_open(bind_dir_s1d3, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
3919 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_RDONLY)); in TEST_F_FORK()
3920 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
3921 ASSERT_EQ(EACCES, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
3923 ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY)); in TEST_F_FORK()
3924 ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY)); in TEST_F_FORK()
3925 ASSERT_EQ(EACCES, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
3928 ASSERT_EQ(EACCES, test_open(file1_s2d2, O_RDONLY)); in TEST_F_FORK()
3929 ASSERT_EQ(EACCES, test_open(file1_s2d2, O_WRONLY)); in TEST_F_FORK()
3930 ASSERT_EQ(EACCES, test_open(dir_s2d2, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
3932 ASSERT_EQ(0, test_open(bind_file1_s1d3, O_RDONLY)); in TEST_F_FORK()
3933 ASSERT_EQ(EACCES, test_open(bind_file1_s1d3, O_WRONLY)); in TEST_F_FORK()
3934 ASSERT_EQ(EACCES, test_open(bind_dir_s1d3, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
3943 ASSERT_EQ(EACCES, test_open(file1_s1d3, O_RDONLY)); in TEST_F_FORK()
3944 ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY)); in TEST_F_FORK()
3947 ASSERT_EQ(EACCES, test_open(bind_file1_s1d3, O_RDONLY)); in TEST_F_FORK()
3948 ASSERT_EQ(EACCES, test_open(bind_file1_s1d3, O_WRONLY)); in TEST_F_FORK()
4199 ASSERT_EQ(0, test_open(lower_fl1, O_RDONLY)); in TEST_F_FORK()
4200 ASSERT_EQ(0, test_open(lower_dl1, O_RDONLY)); in TEST_F_FORK()
4201 ASSERT_EQ(0, test_open(lower_dl1_fl2, O_RDONLY)); in TEST_F_FORK()
4202 ASSERT_EQ(0, test_open(lower_fo1, O_RDONLY)); in TEST_F_FORK()
4203 ASSERT_EQ(0, test_open(lower_do1, O_RDONLY)); in TEST_F_FORK()
4204 ASSERT_EQ(0, test_open(lower_do1_fo2, O_RDONLY)); in TEST_F_FORK()
4205 ASSERT_EQ(0, test_open(lower_do1_fl3, O_RDONLY)); in TEST_F_FORK()
4207 ASSERT_EQ(0, test_open(upper_fu1, O_RDONLY)); in TEST_F_FORK()
4208 ASSERT_EQ(0, test_open(upper_du1, O_RDONLY)); in TEST_F_FORK()
4209 ASSERT_EQ(0, test_open(upper_du1_fu2, O_RDONLY)); in TEST_F_FORK()
4210 ASSERT_EQ(0, test_open(upper_fo1, O_RDONLY)); in TEST_F_FORK()
4211 ASSERT_EQ(0, test_open(upper_do1, O_RDONLY)); in TEST_F_FORK()
4212 ASSERT_EQ(0, test_open(upper_do1_fo2, O_RDONLY)); in TEST_F_FORK()
4213 ASSERT_EQ(0, test_open(upper_do1_fu3, O_RDONLY)); in TEST_F_FORK()
4215 ASSERT_EQ(0, test_open(merge_fl1, O_RDONLY)); in TEST_F_FORK()
4216 ASSERT_EQ(0, test_open(merge_dl1, O_RDONLY)); in TEST_F_FORK()
4217 ASSERT_EQ(0, test_open(merge_dl1_fl2, O_RDONLY)); in TEST_F_FORK()
4218 ASSERT_EQ(0, test_open(merge_fu1, O_RDONLY)); in TEST_F_FORK()
4219 ASSERT_EQ(0, test_open(merge_du1, O_RDONLY)); in TEST_F_FORK()
4220 ASSERT_EQ(0, test_open(merge_du1_fu2, O_RDONLY)); in TEST_F_FORK()
4221 ASSERT_EQ(0, test_open(merge_fo1, O_RDONLY)); in TEST_F_FORK()
4222 ASSERT_EQ(0, test_open(merge_do1, O_RDONLY)); in TEST_F_FORK()
4223 ASSERT_EQ(0, test_open(merge_do1_fo2, O_RDONLY)); in TEST_F_FORK()
4224 ASSERT_EQ(0, test_open(merge_do1_fl3, O_RDONLY)); in TEST_F_FORK()
4225 ASSERT_EQ(0, test_open(merge_do1_fu3, O_RDONLY)); in TEST_F_FORK()
4373 ASSERT_EQ(0, test_open(path_entry, O_RDONLY)); in TEST_F_FORK()
4374 ASSERT_EQ(EACCES, test_open(path_entry, O_WRONLY)); in TEST_F_FORK()
4378 test_open(path_entry, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
4381 ASSERT_EQ(0, test_open(path_entry, O_RDONLY)); in TEST_F_FORK()
4382 ASSERT_EQ(EACCES, test_open(path_entry, O_WRONLY)); in TEST_F_FORK()
4386 ASSERT_EQ(0, test_open(path_entry, O_RDONLY)); in TEST_F_FORK()
4387 ASSERT_EQ(EACCES, test_open(path_entry, O_WRONLY)); in TEST_F_FORK()
4391 test_open(path_entry, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
4394 ASSERT_EQ(0, test_open(path_entry, O_RDONLY)); in TEST_F_FORK()
4395 ASSERT_EQ(EACCES, test_open(path_entry, O_WRONLY)); in TEST_F_FORK()
4404 ASSERT_EQ(0, test_open(path_entry, O_RDWR)); in TEST_F_FORK()
4407 ASSERT_EQ(0, test_open(path_entry, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
4410 ASSERT_EQ(0, test_open(path_entry, O_RDWR)); in TEST_F_FORK()
4421 ASSERT_EQ(0, test_open(path_entry, O_RDWR)); in TEST_F_FORK()
4424 ASSERT_EQ(0, test_open(path_entry, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
4427 ASSERT_EQ(0, test_open(path_entry, O_RDWR)); in TEST_F_FORK()
4438 ASSERT_EQ(EACCES, test_open(path_entry, O_RDONLY)); in TEST_F_FORK()
4442 ASSERT_EQ(EACCES, test_open(path_entry, O_RDONLY)); in TEST_F_FORK()
4446 ASSERT_EQ(EACCES, test_open(path_entry, O_RDWR)); in TEST_F_FORK()
4449 ASSERT_EQ(0, test_open(path_entry, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
4452 ASSERT_EQ(0, test_open(path_entry, O_RDWR)); in TEST_F_FORK()
4463 ASSERT_EQ(0, test_open(path_entry, O_RDONLY)); in TEST_F_FORK()
4464 ASSERT_EQ(EACCES, test_open(path_entry, O_WRONLY)); in TEST_F_FORK()
4468 ASSERT_EQ(0, test_open(path_entry, O_RDONLY)); in TEST_F_FORK()
4469 ASSERT_EQ(EACCES, test_open(path_entry, O_WRONLY)); in TEST_F_FORK()
4473 ASSERT_EQ(EACCES, test_open(path_entry, O_RDWR)); in TEST_F_FORK()
4477 test_open(path_entry, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
4480 ASSERT_EQ(0, test_open(path_entry, O_RDWR)); in TEST_F_FORK()
4491 ASSERT_EQ(EACCES, test_open(path_entry, O_RDONLY)); in TEST_F_FORK()
4495 ASSERT_EQ(EACCES, test_open(path_entry, O_RDONLY)); in TEST_F_FORK()
4499 ASSERT_EQ(EACCES, test_open(path_entry, O_RDWR)); in TEST_F_FORK()
4503 test_open(path_entry, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
4506 ASSERT_EQ(0, test_open(path_entry, O_RDWR)); in TEST_F_FORK()
4678 EXPECT_EQ(0, test_open(dev_null_path, O_RDONLY | O_CLOEXEC)); in layer3_fs_tag_inode()
4679 EXPECT_EQ(0, test_open(variant->file_path, O_RDONLY | O_CLOEXEC)); in layer3_fs_tag_inode()
4687 EXPECT_EQ(EACCES, test_open(dev_null_path, O_RDONLY | O_CLOEXEC)); in layer3_fs_tag_inode()
4688 EXPECT_EQ(0, test_open(variant->file_path, O_RDONLY | O_CLOEXEC)); in layer3_fs_tag_inode()
4699 EXPECT_EQ(EACCES, test_open(dev_null_path, O_RDONLY | O_CLOEXEC)); in layer3_fs_tag_inode()
4700 EXPECT_EQ(EACCES, test_open(variant->file_path, O_RDONLY | O_CLOEXEC)); in layer3_fs_tag_inode()
4767 ASSERT_EQ(EACCES, test_open(TMP_DIR, O_RDONLY)); in TEST_F_FORK()