Lines Matching refs:test_open

428 static int test_open(const char *const path, const int flags)  in test_open()  function
435 ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY)); in TEST_F_FORK()
436 ASSERT_EQ(0, test_open(file1_s1d1, O_RDONLY)); in TEST_F_FORK()
437 ASSERT_EQ(0, test_open(file2_s1d1, O_RDONLY)); in TEST_F_FORK()
438 ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY)); in TEST_F_FORK()
439 ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY)); in TEST_F_FORK()
440 ASSERT_EQ(0, test_open(file2_s1d2, O_RDONLY)); in TEST_F_FORK()
441 ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY)); in TEST_F_FORK()
442 ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY)); in TEST_F_FORK()
444 ASSERT_EQ(0, test_open(dir_s2d1, O_RDONLY)); in TEST_F_FORK()
445 ASSERT_EQ(0, test_open(file1_s2d1, O_RDONLY)); in TEST_F_FORK()
446 ASSERT_EQ(0, test_open(dir_s2d2, O_RDONLY)); in TEST_F_FORK()
447 ASSERT_EQ(0, test_open(file1_s2d2, O_RDONLY)); in TEST_F_FORK()
448 ASSERT_EQ(0, test_open(dir_s2d3, O_RDONLY)); in TEST_F_FORK()
449 ASSERT_EQ(0, test_open(file1_s2d3, O_RDONLY)); in TEST_F_FORK()
451 ASSERT_EQ(0, test_open(dir_s3d1, O_RDONLY)); in TEST_F_FORK()
452 ASSERT_EQ(0, test_open(dir_s3d2, O_RDONLY)); in TEST_F_FORK()
453 ASSERT_EQ(0, test_open(dir_s3d3, O_RDONLY)); in TEST_F_FORK()
791 ASSERT_EQ(0, test_open("/proc/self/ns/mnt", O_RDONLY)); in TEST_F_FORK()
795 ASSERT_EQ(EACCES, test_open("/", O_RDONLY)); in TEST_F_FORK()
796 ASSERT_EQ(EACCES, test_open("/dev", O_RDONLY)); in TEST_F_FORK()
797 ASSERT_EQ(0, test_open("/dev/null", O_RDONLY)); in TEST_F_FORK()
798 ASSERT_EQ(EACCES, test_open("/dev/full", O_RDONLY)); in TEST_F_FORK()
800 ASSERT_EQ(EACCES, test_open("/proc", O_RDONLY)); in TEST_F_FORK()
801 ASSERT_EQ(EACCES, test_open("/proc/self", O_RDONLY)); in TEST_F_FORK()
802 ASSERT_EQ(EACCES, test_open("/proc/self/ns", O_RDONLY)); in TEST_F_FORK()
808 ASSERT_EQ(0, test_open("/proc/self/ns/mnt", O_RDONLY)); in TEST_F_FORK()
870 ASSERT_EQ(EACCES, test_open("/", O_RDONLY)); in TEST_F_FORK()
871 ASSERT_EQ(0, test_open("/", O_RDONLY | O_PATH)); in TEST_F_FORK()
872 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY)); in TEST_F_FORK()
873 ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY | O_PATH)); in TEST_F_FORK()
874 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDONLY)); in TEST_F_FORK()
875 ASSERT_EQ(0, test_open(file1_s1d1, O_RDONLY | O_PATH)); in TEST_F_FORK()
877 ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY)); in TEST_F_FORK()
878 ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY)); in TEST_F_FORK()
879 ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY)); in TEST_F_FORK()
880 ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY)); in TEST_F_FORK()
883 ASSERT_EQ(EACCES, test_open(dir_s2d2, O_RDONLY)); in TEST_F_FORK()
884 ASSERT_EQ(0, test_open(dir_s2d2, O_RDONLY | O_PATH)); in TEST_F_FORK()
886 ASSERT_EQ(0, test_open(file1_s2d2, O_RDONLY)); in TEST_F_FORK()
925 ASSERT_EQ(0, test_open(file1_s1d1, O_WRONLY)); in TEST_F_FORK()
926 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDWR)); in TEST_F_FORK()
928 ASSERT_EQ(0, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
929 ASSERT_EQ(0, test_open(file1_s1d2, O_RDWR)); in TEST_F_FORK()
955 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDONLY)); in TEST_F_FORK()
956 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY)); in TEST_F_FORK()
957 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDWR)); in TEST_F_FORK()
958 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
961 ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY)); in TEST_F_FORK()
962 ASSERT_EQ(0, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
963 ASSERT_EQ(0, test_open(file1_s1d2, O_RDWR)); in TEST_F_FORK()
964 ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
967 ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY)); in TEST_F_FORK()
968 ASSERT_EQ(0, test_open(file1_s1d3, O_WRONLY)); in TEST_F_FORK()
969 ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR)); in TEST_F_FORK()
970 ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1011 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDONLY)); in TEST_F_FORK()
1012 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY)); in TEST_F_FORK()
1013 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDWR)); in TEST_F_FORK()
1014 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1017 ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY)); in TEST_F_FORK()
1018 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
1019 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_RDWR)); in TEST_F_FORK()
1020 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1023 ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY)); in TEST_F_FORK()
1024 ASSERT_EQ(0, test_open(file1_s1d3, O_WRONLY)); in TEST_F_FORK()
1026 ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR)); in TEST_F_FORK()
1027 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1036 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDONLY)); in TEST_F_FORK()
1037 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY)); in TEST_F_FORK()
1038 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDWR)); in TEST_F_FORK()
1039 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1042 ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY)); in TEST_F_FORK()
1043 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
1044 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_RDWR)); in TEST_F_FORK()
1045 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1048 ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY)); in TEST_F_FORK()
1049 ASSERT_EQ(0, test_open(file1_s1d3, O_WRONLY)); in TEST_F_FORK()
1051 ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR)); in TEST_F_FORK()
1052 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1061 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDONLY)); in TEST_F_FORK()
1062 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY)); in TEST_F_FORK()
1063 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDWR)); in TEST_F_FORK()
1064 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1067 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_RDONLY)); in TEST_F_FORK()
1068 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
1069 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_RDWR)); in TEST_F_FORK()
1070 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1073 ASSERT_EQ(EACCES, test_open(file1_s1d3, O_RDONLY)); in TEST_F_FORK()
1074 ASSERT_EQ(0, test_open(file1_s1d3, O_WRONLY)); in TEST_F_FORK()
1076 ASSERT_EQ(EACCES, test_open(file1_s1d3, O_RDWR)); in TEST_F_FORK()
1077 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1229 ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR)); in TEST_F_FORK()
1230 ASSERT_EQ(EACCES, test_open(file2_s1d3, O_RDONLY)); in TEST_F_FORK()
1231 ASSERT_EQ(0, test_open(file2_s1d3, O_WRONLY)); in TEST_F_FORK()
1242 ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR)); in TEST_F_FORK()
1243 ASSERT_EQ(EACCES, test_open(file2_s1d3, O_RDONLY)); in TEST_F_FORK()
1244 ASSERT_EQ(0, test_open(file2_s1d3, O_WRONLY)); in TEST_F_FORK()
1253 ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR)); in TEST_F_FORK()
1254 ASSERT_EQ(EACCES, test_open(file2_s1d3, O_RDONLY)); in TEST_F_FORK()
1255 ASSERT_EQ(0, test_open(file2_s1d3, O_WRONLY)); in TEST_F_FORK()
1270 ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY)); in TEST_F_FORK()
1271 ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY)); in TEST_F_FORK()
1272 ASSERT_EQ(EACCES, test_open(file2_s1d3, O_RDONLY)); in TEST_F_FORK()
1273 ASSERT_EQ(EACCES, test_open(file2_s1d3, O_WRONLY)); in TEST_F_FORK()
1282 ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY)); in TEST_F_FORK()
1283 ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY)); in TEST_F_FORK()
1284 ASSERT_EQ(EACCES, test_open(file2_s1d3, O_WRONLY)); in TEST_F_FORK()
1285 ASSERT_EQ(EACCES, test_open(file2_s1d3, O_RDONLY)); in TEST_F_FORK()
1294 ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY)); in TEST_F_FORK()
1295 ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY)); in TEST_F_FORK()
1296 ASSERT_EQ(EACCES, test_open(file2_s1d3, O_WRONLY)); in TEST_F_FORK()
1297 ASSERT_EQ(EACCES, test_open(file2_s1d3, O_RDONLY)); in TEST_F_FORK()
1308 ASSERT_EQ(EACCES, test_open(file1_s1d3, O_RDONLY)); in TEST_F_FORK()
1309 ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY)); in TEST_F_FORK()
1310 ASSERT_EQ(EACCES, test_open(file2_s1d3, O_WRONLY)); in TEST_F_FORK()
1311 ASSERT_EQ(EACCES, test_open(file2_s1d3, O_RDONLY)); in TEST_F_FORK()
1329 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY)); in TEST_F_FORK()
1330 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1333 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
1335 ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1338 ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY)); in TEST_F_FORK()
1340 ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1363 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY)); in TEST_F_FORK()
1364 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1367 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
1369 ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1372 ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY)); in TEST_F_FORK()
1374 ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1384 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY)); in TEST_F_FORK()
1385 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1388 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
1390 ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1393 ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY)); in TEST_F_FORK()
1395 ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1414 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY)); in TEST_F_FORK()
1415 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1418 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
1420 ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1423 ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY)); in TEST_F_FORK()
1428 ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1446 ASSERT_EQ(EACCES, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1448 ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1450 ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY)); in TEST_F_FORK()
1461 ASSERT_EQ(EACCES, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1463 ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
1465 ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY)); in TEST_F_FORK()
1509 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDONLY)); in TEST_F_FORK()
1510 ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY)); in TEST_F_FORK()
1518 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDONLY)); in TEST_F_FORK()
1519 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY)); in TEST_F_FORK()
1546 ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY)); in TEST_F_FORK()
1548 ASSERT_EQ(EACCES, test_open(dir_s2d1, O_RDONLY)); in TEST_F_FORK()
1550 ASSERT_EQ(EACCES, test_open(dir_s3d1, O_RDONLY)); in TEST_F_FORK()
1551 ASSERT_EQ(0, test_open(dir_s3d2, O_RDONLY)); in TEST_F_FORK()
1552 ASSERT_EQ(0, test_open(dir_s3d3, O_RDONLY)); in TEST_F_FORK()
1575 ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY)); in TEST_F_FORK()
1577 ASSERT_EQ(EACCES, test_open(dir_s2d1, O_RDONLY)); in TEST_F_FORK()
1579 ASSERT_EQ(0, test_open(dir_s3d1, O_RDONLY)); in TEST_F_FORK()
1580 ASSERT_EQ(0, test_open(dir_s3d2, O_RDONLY)); in TEST_F_FORK()
1581 ASSERT_EQ(0, test_open(dir_s3d3, O_RDONLY)); in TEST_F_FORK()
1604 ASSERT_EQ(0, test_open("/", O_RDONLY)); in TEST_F_FORK()
1605 ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY)); in TEST_F_FORK()
1614 ASSERT_EQ(EACCES, test_open("/", O_RDONLY)); in TEST_F_FORK()
1615 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY)); in TEST_F_FORK()
1634 ASSERT_EQ(EACCES, test_open("/", O_RDONLY)); in TEST_F_FORK()
1635 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY)); in TEST_F_FORK()
1662 ASSERT_EQ(0, test_open("s3d3", O_RDONLY)); in TEST_F_FORK()
1663 ASSERT_EQ(EACCES, test_open("/", O_RDONLY)); in TEST_F_FORK()
1810 ASSERT_EQ(0, test_open(file1_s1d1, O_RDONLY)); in TEST_F_FORK()
1811 ASSERT_EQ(EACCES, test_open(dir_s3d2, O_RDONLY)); in TEST_F_FORK()
1813 ASSERT_EQ(ENOENT, test_open(dir_s3d3, O_RDONLY)); in TEST_F_FORK()
2031 ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY)); in TEST_F_FORK()
2032 ASSERT_EQ(0, test_open(file1_s1d1, O_RDONLY)); in TEST_F_FORK()
2035 ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY)); in TEST_F_FORK()
2036 ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY)); in TEST_F_FORK()
2039 ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY)); in TEST_F_FORK()
2040 ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY)); in TEST_F_FORK()
3380 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_RDWR)); in TEST_F_FORK()
3381 ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY)); in TEST_F_FORK()
3423 ASSERT_EQ(0, test_open(file1_s1d2, O_RDWR)); in TEST_F_FORK()
3424 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDWR)); in TEST_F_FORK()
3526 EXPECT_EQ(0, test_open(file_r, O_RDONLY | O_TRUNC)); in TEST_F_FORK()
3527 EXPECT_EQ(EACCES, test_open(file_r, O_WRONLY | O_TRUNC)); in TEST_F_FORK()
3535 EXPECT_EQ(EACCES, test_open(file_w, O_RDONLY | O_TRUNC)); in TEST_F_FORK()
3536 EXPECT_EQ(0, test_open(file_w, O_WRONLY | O_TRUNC)); in TEST_F_FORK()
3544 EXPECT_EQ(EACCES, test_open(file_none, O_RDONLY | O_TRUNC)); in TEST_F_FORK()
3545 EXPECT_EQ(EACCES, test_open(file_none, O_WRONLY | O_TRUNC)); in TEST_F_FORK()
3606 EXPECT_EQ(0, test_open(file_rwt, O_RDONLY | O_TRUNC)); in TEST_F_FORK()
3607 EXPECT_EQ(0, test_open(file_rwt, O_WRONLY | O_TRUNC)); in TEST_F_FORK()
3611 EXPECT_EQ(EACCES, test_open(file_rw, O_RDONLY | O_TRUNC)); in TEST_F_FORK()
3612 EXPECT_EQ(EACCES, test_open(file_rw, O_WRONLY | O_TRUNC)); in TEST_F_FORK()
3620 EXPECT_EQ(0, test_open(file_rt, O_RDONLY | O_TRUNC)); in TEST_F_FORK()
3621 EXPECT_EQ(EACCES, test_open(file_rt, O_WRONLY | O_TRUNC)); in TEST_F_FORK()
3625 EXPECT_EQ(EACCES, test_open(file_t, O_RDONLY | O_TRUNC)); in TEST_F_FORK()
3626 EXPECT_EQ(EACCES, test_open(file_t, O_WRONLY | O_TRUNC)); in TEST_F_FORK()
3630 EXPECT_EQ(EACCES, test_open(file_none, O_RDONLY | O_TRUNC)); in TEST_F_FORK()
3631 EXPECT_EQ(EACCES, test_open(file_none, O_WRONLY | O_TRUNC)); in TEST_F_FORK()
3638 EXPECT_EQ(EACCES, test_open(file_in_dir_t, O_RDONLY | O_TRUNC)); in TEST_F_FORK()
3639 EXPECT_EQ(EACCES, test_open(file_in_dir_t, O_WRONLY | O_TRUNC)); in TEST_F_FORK()
4420 ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY)); in TEST_F_FORK()
4421 ASSERT_EQ(0, test_open(file1_s1d1, O_RDONLY)); in TEST_F_FORK()
4422 ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY)); in TEST_F_FORK()
4423 ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY)); in TEST_F_FORK()
4424 ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY)); in TEST_F_FORK()
4425 ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY)); in TEST_F_FORK()
4427 ASSERT_EQ(0, test_open(dir_s2d1, O_RDONLY)); in TEST_F_FORK()
4428 ASSERT_EQ(0, test_open(file1_s2d1, O_RDONLY)); in TEST_F_FORK()
4429 ASSERT_EQ(0, test_open(dir_s2d2, O_RDONLY)); in TEST_F_FORK()
4430 ASSERT_EQ(0, test_open(file1_s2d2, O_RDONLY)); in TEST_F_FORK()
4431 ASSERT_EQ(ENOENT, test_open(dir_s2d3, O_RDONLY)); in TEST_F_FORK()
4432 ASSERT_EQ(ENOENT, test_open(file1_s2d3, O_RDONLY)); in TEST_F_FORK()
4434 ASSERT_EQ(0, test_open(bind_dir_s1d3, O_RDONLY)); in TEST_F_FORK()
4435 ASSERT_EQ(0, test_open(bind_file1_s1d3, O_RDONLY)); in TEST_F_FORK()
4437 ASSERT_EQ(0, test_open(dir_s3d1, O_RDONLY)); in TEST_F_FORK()
4498 ASSERT_EQ(0, test_open(file1_s1d1, O_RDONLY)); in TEST_F_FORK()
4499 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY)); in TEST_F_FORK()
4500 ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
4502 ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY)); in TEST_F_FORK()
4503 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
4504 ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
4507 ASSERT_EQ(0, test_open(file1_s2d1, O_RDWR)); in TEST_F_FORK()
4508 ASSERT_EQ(0, test_open(dir_s2d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
4510 ASSERT_EQ(0, test_open(file1_s2d2, O_RDWR)); in TEST_F_FORK()
4511 ASSERT_EQ(0, test_open(dir_s2d2, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
4520 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDONLY)); in TEST_F_FORK()
4521 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY)); in TEST_F_FORK()
4522 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
4524 ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY)); in TEST_F_FORK()
4525 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
4526 ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
4529 ASSERT_EQ(EACCES, test_open(file1_s2d1, O_RDONLY)); in TEST_F_FORK()
4530 ASSERT_EQ(EACCES, test_open(file1_s2d1, O_WRONLY)); in TEST_F_FORK()
4531 ASSERT_EQ(EACCES, test_open(dir_s2d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
4533 ASSERT_EQ(0, test_open(file1_s2d2, O_RDWR)); in TEST_F_FORK()
4534 ASSERT_EQ(0, test_open(dir_s2d2, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
4535 ASSERT_EQ(0, test_open(bind_dir_s1d3, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
4544 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_RDONLY)); in TEST_F_FORK()
4545 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
4546 ASSERT_EQ(EACCES, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
4548 ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY)); in TEST_F_FORK()
4549 ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY)); in TEST_F_FORK()
4550 ASSERT_EQ(EACCES, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
4553 ASSERT_EQ(EACCES, test_open(file1_s2d2, O_RDONLY)); in TEST_F_FORK()
4554 ASSERT_EQ(EACCES, test_open(file1_s2d2, O_WRONLY)); in TEST_F_FORK()
4555 ASSERT_EQ(EACCES, test_open(dir_s2d2, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
4557 ASSERT_EQ(0, test_open(bind_file1_s1d3, O_RDONLY)); in TEST_F_FORK()
4558 ASSERT_EQ(EACCES, test_open(bind_file1_s1d3, O_WRONLY)); in TEST_F_FORK()
4559 ASSERT_EQ(EACCES, test_open(bind_dir_s1d3, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
4568 ASSERT_EQ(EACCES, test_open(file1_s1d3, O_RDONLY)); in TEST_F_FORK()
4569 ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY)); in TEST_F_FORK()
4572 ASSERT_EQ(EACCES, test_open(bind_file1_s1d3, O_RDONLY)); in TEST_F_FORK()
4573 ASSERT_EQ(EACCES, test_open(bind_file1_s1d3, O_WRONLY)); in TEST_F_FORK()
4820 ASSERT_EQ(0, test_open(lower_fl1, O_RDONLY)); in TEST_F_FORK()
4821 ASSERT_EQ(0, test_open(lower_dl1, O_RDONLY)); in TEST_F_FORK()
4822 ASSERT_EQ(0, test_open(lower_dl1_fl2, O_RDONLY)); in TEST_F_FORK()
4823 ASSERT_EQ(0, test_open(lower_fo1, O_RDONLY)); in TEST_F_FORK()
4824 ASSERT_EQ(0, test_open(lower_do1, O_RDONLY)); in TEST_F_FORK()
4825 ASSERT_EQ(0, test_open(lower_do1_fo2, O_RDONLY)); in TEST_F_FORK()
4826 ASSERT_EQ(0, test_open(lower_do1_fl3, O_RDONLY)); in TEST_F_FORK()
4828 ASSERT_EQ(0, test_open(upper_fu1, O_RDONLY)); in TEST_F_FORK()
4829 ASSERT_EQ(0, test_open(upper_du1, O_RDONLY)); in TEST_F_FORK()
4830 ASSERT_EQ(0, test_open(upper_du1_fu2, O_RDONLY)); in TEST_F_FORK()
4831 ASSERT_EQ(0, test_open(upper_fo1, O_RDONLY)); in TEST_F_FORK()
4832 ASSERT_EQ(0, test_open(upper_do1, O_RDONLY)); in TEST_F_FORK()
4833 ASSERT_EQ(0, test_open(upper_do1_fo2, O_RDONLY)); in TEST_F_FORK()
4834 ASSERT_EQ(0, test_open(upper_do1_fu3, O_RDONLY)); in TEST_F_FORK()
4836 ASSERT_EQ(0, test_open(merge_fl1, O_RDONLY)); in TEST_F_FORK()
4837 ASSERT_EQ(0, test_open(merge_dl1, O_RDONLY)); in TEST_F_FORK()
4838 ASSERT_EQ(0, test_open(merge_dl1_fl2, O_RDONLY)); in TEST_F_FORK()
4839 ASSERT_EQ(0, test_open(merge_fu1, O_RDONLY)); in TEST_F_FORK()
4840 ASSERT_EQ(0, test_open(merge_du1, O_RDONLY)); in TEST_F_FORK()
4841 ASSERT_EQ(0, test_open(merge_du1_fu2, O_RDONLY)); in TEST_F_FORK()
4842 ASSERT_EQ(0, test_open(merge_fo1, O_RDONLY)); in TEST_F_FORK()
4843 ASSERT_EQ(0, test_open(merge_do1, O_RDONLY)); in TEST_F_FORK()
4844 ASSERT_EQ(0, test_open(merge_do1_fo2, O_RDONLY)); in TEST_F_FORK()
4845 ASSERT_EQ(0, test_open(merge_do1_fl3, O_RDONLY)); in TEST_F_FORK()
4846 ASSERT_EQ(0, test_open(merge_do1_fu3, O_RDONLY)); in TEST_F_FORK()
4994 ASSERT_EQ(0, test_open(path_entry, O_RDONLY)); in TEST_F_FORK()
4995 ASSERT_EQ(EACCES, test_open(path_entry, O_WRONLY)); in TEST_F_FORK()
4999 test_open(path_entry, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
5002 ASSERT_EQ(0, test_open(path_entry, O_RDONLY)); in TEST_F_FORK()
5003 ASSERT_EQ(EACCES, test_open(path_entry, O_WRONLY)); in TEST_F_FORK()
5007 ASSERT_EQ(0, test_open(path_entry, O_RDONLY)); in TEST_F_FORK()
5008 ASSERT_EQ(EACCES, test_open(path_entry, O_WRONLY)); in TEST_F_FORK()
5012 test_open(path_entry, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
5015 ASSERT_EQ(0, test_open(path_entry, O_RDONLY)); in TEST_F_FORK()
5016 ASSERT_EQ(EACCES, test_open(path_entry, O_WRONLY)); in TEST_F_FORK()
5025 ASSERT_EQ(0, test_open(path_entry, O_RDWR)); in TEST_F_FORK()
5028 ASSERT_EQ(0, test_open(path_entry, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
5031 ASSERT_EQ(0, test_open(path_entry, O_RDWR)); in TEST_F_FORK()
5042 ASSERT_EQ(0, test_open(path_entry, O_RDWR)); in TEST_F_FORK()
5045 ASSERT_EQ(0, test_open(path_entry, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
5048 ASSERT_EQ(0, test_open(path_entry, O_RDWR)); in TEST_F_FORK()
5059 ASSERT_EQ(EACCES, test_open(path_entry, O_RDONLY)); in TEST_F_FORK()
5063 ASSERT_EQ(EACCES, test_open(path_entry, O_RDONLY)); in TEST_F_FORK()
5067 ASSERT_EQ(EACCES, test_open(path_entry, O_RDWR)); in TEST_F_FORK()
5070 ASSERT_EQ(0, test_open(path_entry, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
5073 ASSERT_EQ(0, test_open(path_entry, O_RDWR)); in TEST_F_FORK()
5084 ASSERT_EQ(0, test_open(path_entry, O_RDONLY)); in TEST_F_FORK()
5085 ASSERT_EQ(EACCES, test_open(path_entry, O_WRONLY)); in TEST_F_FORK()
5089 ASSERT_EQ(0, test_open(path_entry, O_RDONLY)); in TEST_F_FORK()
5090 ASSERT_EQ(EACCES, test_open(path_entry, O_WRONLY)); in TEST_F_FORK()
5094 ASSERT_EQ(EACCES, test_open(path_entry, O_RDWR)); in TEST_F_FORK()
5098 test_open(path_entry, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
5101 ASSERT_EQ(0, test_open(path_entry, O_RDWR)); in TEST_F_FORK()
5112 ASSERT_EQ(EACCES, test_open(path_entry, O_RDONLY)); in TEST_F_FORK()
5116 ASSERT_EQ(EACCES, test_open(path_entry, O_RDONLY)); in TEST_F_FORK()
5120 ASSERT_EQ(EACCES, test_open(path_entry, O_RDWR)); in TEST_F_FORK()
5124 test_open(path_entry, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
5127 ASSERT_EQ(0, test_open(path_entry, O_RDWR)); in TEST_F_FORK()
5304 EXPECT_EQ(0, test_open(dev_null_path, O_RDONLY | O_CLOEXEC)); in layer3_fs_tag_inode()
5305 EXPECT_EQ(0, test_open(variant->file_path, O_RDONLY | O_CLOEXEC)); in layer3_fs_tag_inode()
5313 EXPECT_EQ(EACCES, test_open(dev_null_path, O_RDONLY | O_CLOEXEC)); in layer3_fs_tag_inode()
5314 EXPECT_EQ(0, test_open(variant->file_path, O_RDONLY | O_CLOEXEC)); in layer3_fs_tag_inode()
5325 EXPECT_EQ(EACCES, test_open(dev_null_path, O_RDONLY | O_CLOEXEC)); in layer3_fs_tag_inode()
5326 EXPECT_EQ(EACCES, test_open(variant->file_path, O_RDONLY | O_CLOEXEC)); in layer3_fs_tag_inode()
5400 ASSERT_EQ(EACCES, test_open(TMP_DIR, O_RDONLY)); in TEST_F_FORK()