Lines Matching refs:EXPECT_EQ

317 	EXPECT_EQ(0, remove_path(TMP_DIR));
359 EXPECT_EQ(0, remove_path(file2_s1d3));
360 EXPECT_EQ(0, remove_path(file2_s1d2));
361 EXPECT_EQ(0, remove_path(file2_s1d1));
362 EXPECT_EQ(0, remove_path(file1_s1d3));
363 EXPECT_EQ(0, remove_path(file1_s1d2));
364 EXPECT_EQ(0, remove_path(file1_s1d1));
365 EXPECT_EQ(0, remove_path(dir_s1d3));
367 EXPECT_EQ(0, remove_path(file2_s2d3));
368 EXPECT_EQ(0, remove_path(file1_s2d3));
369 EXPECT_EQ(0, remove_path(file1_s2d2));
370 EXPECT_EQ(0, remove_path(file1_s2d1));
371 EXPECT_EQ(0, remove_path(dir_s2d2));
373 EXPECT_EQ(0, remove_path(file1_s3d1));
374 EXPECT_EQ(0, remove_path(dir_s3d3));
378 EXPECT_EQ(0, remove_path(dir_s3d2));
650 EXPECT_EQ(-1, landlock_add_rule(ruleset_fd,
653 EXPECT_EQ(EINVAL, errno);
682 EXPECT_EQ(0, err);
684 EXPECT_EQ(-1, err);
685 EXPECT_EQ(EINVAL, errno);
689 EXPECT_EQ(0, close(path_beneath.parent_fd));
690 EXPECT_EQ(0, close(ruleset_fd));
3481 EXPECT_EQ(0, test_truncate(file_r));
3482 EXPECT_EQ(0, test_open(file_r, O_RDONLY | O_TRUNC));
3483 EXPECT_EQ(EACCES, test_open(file_r, O_WRONLY | O_TRUNC));
3484 EXPECT_EQ(EACCES, test_creat(file_r));
3490 EXPECT_EQ(0, test_truncate(file_w));
3491 EXPECT_EQ(EACCES, test_open(file_w, O_RDONLY | O_TRUNC));
3492 EXPECT_EQ(0, test_open(file_w, O_WRONLY | O_TRUNC));
3493 EXPECT_EQ(0, test_creat(file_w));
3499 EXPECT_EQ(0, test_truncate(file_none));
3500 EXPECT_EQ(EACCES, test_open(file_none, O_RDONLY | O_TRUNC));
3501 EXPECT_EQ(EACCES, test_open(file_none, O_WRONLY | O_TRUNC));
3502 EXPECT_EQ(EACCES, test_creat(file_none));
3561 EXPECT_EQ(0, test_truncate(file_rwt));
3562 EXPECT_EQ(0, test_open(file_rwt, O_RDONLY | O_TRUNC));
3563 EXPECT_EQ(0, test_open(file_rwt, O_WRONLY | O_TRUNC));
3566 EXPECT_EQ(EACCES, test_truncate(file_rw));
3567 EXPECT_EQ(EACCES, test_open(file_rw, O_RDONLY | O_TRUNC));
3568 EXPECT_EQ(EACCES, test_open(file_rw, O_WRONLY | O_TRUNC));
3575 EXPECT_EQ(0, test_truncate(file_rt));
3576 EXPECT_EQ(0, test_open(file_rt, O_RDONLY | O_TRUNC));
3577 EXPECT_EQ(EACCES, test_open(file_rt, O_WRONLY | O_TRUNC));
3580 EXPECT_EQ(0, test_truncate(file_t));
3581 EXPECT_EQ(EACCES, test_open(file_t, O_RDONLY | O_TRUNC));
3582 EXPECT_EQ(EACCES, test_open(file_t, O_WRONLY | O_TRUNC));
3585 EXPECT_EQ(EACCES, test_truncate(file_none));
3586 EXPECT_EQ(EACCES, test_open(file_none, O_RDONLY | O_TRUNC));
3587 EXPECT_EQ(EACCES, test_open(file_none, O_WRONLY | O_TRUNC));
3593 EXPECT_EQ(0, test_truncate(file_in_dir_t));
3594 EXPECT_EQ(EACCES, test_open(file_in_dir_t, O_RDONLY | O_TRUNC));
3595 EXPECT_EQ(EACCES, test_open(file_in_dir_t, O_WRONLY | O_TRUNC));
3602 EXPECT_EQ(EACCES, test_creat(file_in_dir_w));
3605 EXPECT_EQ(0, test_creat(file_in_dir_w));
3661 EXPECT_EQ(0, test_ftruncate(fd_layer0));
3669 EXPECT_EQ(0, test_ftruncate(fd_layer0));
3670 EXPECT_EQ(0, test_ftruncate(fd_layer1));
3678 EXPECT_EQ(0, test_ftruncate(fd_layer0));
3679 EXPECT_EQ(0, test_ftruncate(fd_layer1));
3680 EXPECT_EQ(0, test_ftruncate(fd_layer2));
3688 EXPECT_EQ(0, test_ftruncate(fd_layer0));
3689 EXPECT_EQ(0, test_ftruncate(fd_layer1));
3690 EXPECT_EQ(0, test_ftruncate(fd_layer2));
3691 EXPECT_EQ(EACCES, test_ftruncate(fd_layer3));
3711 EXPECT_EQ(0, remove_path(file1_s1d1));
3786 EXPECT_EQ(variant->expected_open_result, (fd < 0 ? errno : 0));
3788 EXPECT_EQ(variant->expected_ftruncate_result,
3843 EXPECT_EQ(variant->expected_ftruncate_result,
3887 EXPECT_EQ(0, test_ftruncate(fd));
3888 EXPECT_EQ(0, test_fs_ioc_getflags_ioctl(fd));
3924 EXPECT_EQ(EBADF, test_ftruncate(fd));
3925 EXPECT_EQ(EBADF, test_fs_ioc_getflags_ioctl(fd));
3943 EXPECT_EQ(EBADF, test_ftruncate(fd));
3944 EXPECT_EQ(EBADF, test_fs_ioc_getflags_ioctl(fd));
4044 EXPECT_EQ(EACCES, ioctl_error(_metadata, fd, FIONREAD));
4045 EXPECT_EQ(EACCES, ioctl_error(_metadata, fd, FS_IOC_GETFLAGS));
4046 EXPECT_EQ(EACCES, ioctl_error(_metadata, fd, FS_IOC_SETFLAGS));
4047 EXPECT_EQ(EACCES, ioctl_error(_metadata, fd, FS_IOC_FSGETXATTR));
4048 EXPECT_EQ(EACCES, ioctl_error(_metadata, fd, FS_IOC_FSSETXATTR));
4049 EXPECT_EQ(EACCES, ioctl_error(_metadata, fd, FIBMAP));
4050 EXPECT_EQ(EACCES, ioctl_error(_metadata, fd, FS_IOC_RESVSP));
4051 EXPECT_EQ(EACCES, ioctl_error(_metadata, fd, FS_IOC_RESVSP64));
4052 EXPECT_EQ(EACCES, ioctl_error(_metadata, fd, FS_IOC_UNRESVSP));
4053 EXPECT_EQ(EACCES, ioctl_error(_metadata, fd, FS_IOC_UNRESVSP64));
4054 EXPECT_EQ(EACCES, ioctl_error(_metadata, fd, FS_IOC_ZERO_RANGE));
4057 EXPECT_EQ(EACCES, ioctl_error(_metadata, fd, 0xc00ffeee));
4097 EXPECT_EQ(0, test_fionread_ioctl(fd));
4150 EXPECT_EQ(0, test_fionread_ioctl(cli_fd));
4225 EXPECT_EQ(variant->expected_fionread_result,
4229 EXPECT_EQ(0, ioctl(file_fd, FIOCLEX));
4230 EXPECT_EQ(0, ioctl(file_fd, FIONCLEX));
4231 EXPECT_EQ(0, ioctl(file_fd, FIONBIO, &flag));
4232 EXPECT_EQ(0, ioctl(file_fd, FIOASYNC, &flag));
4233 EXPECT_EQ(0, ioctl(file_fd, FIGETBSZ, &flag));
4271 EXPECT_EQ(0, test_fionread_ioctl(dir_fd));
4274 EXPECT_EQ(0, ioctl(dir_fd, FIOCLEX));
4275 EXPECT_EQ(0, ioctl(dir_fd, FIONCLEX));
4276 EXPECT_EQ(0, ioctl(dir_fd, FIONBIO, &flag));
4277 EXPECT_EQ(0, ioctl(dir_fd, FIOASYNC, &flag));
4278 EXPECT_EQ(0, ioctl(dir_fd, FIGETBSZ, &flag));
4308 EXPECT_EQ(variant->expected_fionread_result,
4312 EXPECT_EQ(0, ioctl(file_fd, FIOCLEX));
4313 EXPECT_EQ(0, ioctl(file_fd, FIONCLEX));
4314 EXPECT_EQ(0, ioctl(file_fd, FIONBIO, &flag));
4315 EXPECT_EQ(0, ioctl(file_fd, FIOASYNC, &flag));
4316 EXPECT_EQ(0, ioctl(file_fd, FIGETBSZ, &flag));
4746 EXPECT_EQ(0, remove_path(lower_do1_fl3));
4747 EXPECT_EQ(0, remove_path(lower_dl1_fl2));
4748 EXPECT_EQ(0, remove_path(lower_fl1));
4749 EXPECT_EQ(0, remove_path(lower_do1_fo2));
4750 EXPECT_EQ(0, remove_path(lower_fo1));
4753 EXPECT_EQ(0, remove_path(LOWER_BASE));
4755 EXPECT_EQ(0, remove_path(upper_do1_fu3));
4756 EXPECT_EQ(0, remove_path(upper_du1_fu2));
4757 EXPECT_EQ(0, remove_path(upper_fu1));
4758 EXPECT_EQ(0, remove_path(upper_do1_fo2));
4759 EXPECT_EQ(0, remove_path(upper_fo1));
4760 EXPECT_EQ(0, remove_path(UPPER_WORK "/work"));
4763 EXPECT_EQ(0, remove_path(UPPER_BASE));
4766 EXPECT_EQ(0, remove_path(MERGE_DATA));
5179 EXPECT_EQ(0, mkdir(dir_path, 0700))
5199 EXPECT_EQ(0, close(fd));
5260 EXPECT_EQ(0, test_open(dev_null_path, O_RDONLY | O_CLOEXEC));
5261 EXPECT_EQ(0, test_open(variant->file_path, O_RDONLY | O_CLOEXEC));
5267 EXPECT_EQ(0, close(ruleset_fd));
5269 EXPECT_EQ(EACCES, test_open(dev_null_path, O_RDONLY | O_CLOEXEC));
5270 EXPECT_EQ(0, test_open(variant->file_path, O_RDONLY | O_CLOEXEC));
5278 EXPECT_EQ(0, close(ruleset_fd));
5281 EXPECT_EQ(EACCES, test_open(dev_null_path, O_RDONLY | O_CLOEXEC));
5282 EXPECT_EQ(EACCES, test_open(variant->file_path, O_RDONLY | O_CLOEXEC));
5328 EXPECT_EQ(0, remove_path(variant->file_path));