Lines Matching refs:ATF_REQUIRE
138 ATF_REQUIRE(strcmp(atf_fs_path_cstring(&p), t->out) == 0);
157 ATF_REQUIRE(atf_equal_fs_path_fs_path(&str, &str2));
161 ATF_REQUIRE(!atf_equal_fs_path_fs_path(&str, &str2));
198 ATF_REQUIRE(atf_fs_path_is_absolute(&p));
200 ATF_REQUIRE(!atf_fs_path_is_absolute(&p));
238 ATF_REQUIRE(atf_fs_path_is_root(&p));
240 ATF_REQUIRE(!atf_fs_path_is_root(&p));
277 ATF_REQUIRE(strcmp(atf_fs_path_cstring(&bp), t->branch) == 0);
316 ATF_REQUIRE(atf_equal_dynstr_cstring(&ln, t->leaf));
358 ATF_REQUIRE(strcmp(atf_fs_path_cstring(&p), t->out) == 0);
377 ATF_REQUIRE(mkdir("dir", 0755) != -1);
390 ATF_REQUIRE(atf_fs_path_is_absolute(&p2));
419 ATF_REQUIRE(atf_equal_fs_path_fs_path(&p1, &p2));
423 ATF_REQUIRE(!atf_equal_fs_path_fs_path(&p1, &p2));
504 ATF_REQUIRE(atf_fs_stat_is_owner_readable(&st) == ur); \
505 ATF_REQUIRE(atf_fs_stat_is_owner_writable(&st) == uw); \
506 ATF_REQUIRE(atf_fs_stat_is_owner_executable(&st) == ux); \
507 ATF_REQUIRE(atf_fs_stat_is_group_readable(&st) == gr); \
508 ATF_REQUIRE(atf_fs_stat_is_group_writable(&st) == gw); \
509 ATF_REQUIRE(atf_fs_stat_is_group_executable(&st) == gx); \
510 ATF_REQUIRE(atf_fs_stat_is_other_readable(&st) == othr); \
511 ATF_REQUIRE(atf_fs_stat_is_other_writable(&st) == othw); \
512 ATF_REQUIRE(atf_fs_stat_is_other_executable(&st) == othx); \
583 ATF_REQUIRE(b);
587 ATF_REQUIRE(b);
595 ATF_REQUIRE(chmod(atf_fs_path_cstring(&pdir), 0000) != -1);
597 ATF_REQUIRE(atf_is_error(err));
598 ATF_REQUIRE(atf_error_is(err, "libc"));
599 ATF_REQUIRE(chmod(atf_fs_path_cstring(&pdir), 0755) != -1);
604 ATF_REQUIRE(unlink(atf_fs_path_cstring(&pfile)) != -1);
606 ATF_REQUIRE(!b);
673 ATF_REQUIRE(atf_is_error(err));
674 ATF_REQUIRE(atf_error_is(err, "libc"));
680 ATF_REQUIRE(chown(atf_fs_path_cstring(&p), geteuid(), getegid()) != -1);
689 ATF_REQUIRE(chmod(atf_fs_path_cstring(&p), t->fmode) != -1);
693 ATF_REQUIRE(!atf_is_error(err));
706 ATF_REQUIRE(!atf_is_error(err));
708 ATF_REQUIRE(atf_is_error(err));
709 ATF_REQUIRE(atf_error_is(err, "libc"));
730 ATF_REQUIRE(chdir("root") != -1);
735 ATF_REQUIRE(atf_equal_fs_path_fs_path(&cwd1, &cwd2));
752 ATF_REQUIRE(mkdir("test-dir", 0755) != -1);
753 ATF_REQUIRE(exists(&p));
755 ATF_REQUIRE(!exists(&p));
772 ATF_REQUIRE(mkdir("test-dir", 0755) != -1);
773 ATF_REQUIRE(exists(&p));
777 ATF_REQUIRE(atf_is_error(err));
778 ATF_REQUIRE(atf_error_is(err, "libc"));
797 ATF_REQUIRE(mkdir("test-dir", 0755) != -1);
798 ATF_REQUIRE(mkdir("test-dir/foo", 0755) != -1);
799 ATF_REQUIRE(chmod("test-dir", 0555) != -1);
800 ATF_REQUIRE(exists(&p));
804 ATF_REQUIRE(!atf_is_error(err));
806 ATF_REQUIRE(atf_is_error(err));
807 ATF_REQUIRE(atf_error_is(err, "libc"));
830 ATF_REQUIRE(!atf_equal_fs_path_fs_path(&p1, &p2));
831 ATF_REQUIRE(exists(&p1));
832 ATF_REQUIRE(exists(&p2));
836 ATF_REQUIRE( atf_fs_stat_is_owner_readable(&s1));
837 ATF_REQUIRE( atf_fs_stat_is_owner_writable(&s1));
838 ATF_REQUIRE( atf_fs_stat_is_owner_executable(&s1));
839 ATF_REQUIRE(!atf_fs_stat_is_group_readable(&s1));
840 ATF_REQUIRE(!atf_fs_stat_is_group_writable(&s1));
841 ATF_REQUIRE(!atf_fs_stat_is_group_executable(&s1));
842 ATF_REQUIRE(!atf_fs_stat_is_other_readable(&s1));
843 ATF_REQUIRE(!atf_fs_stat_is_other_writable(&s1));
844 ATF_REQUIRE(!atf_fs_stat_is_other_executable(&s1));
848 ATF_REQUIRE( atf_fs_stat_is_owner_readable(&s2));
849 ATF_REQUIRE( atf_fs_stat_is_owner_writable(&s2));
850 ATF_REQUIRE( atf_fs_stat_is_owner_executable(&s2));
851 ATF_REQUIRE(!atf_fs_stat_is_group_readable(&s2));
852 ATF_REQUIRE(!atf_fs_stat_is_group_writable(&s2));
853 ATF_REQUIRE(!atf_fs_stat_is_group_executable(&s2));
854 ATF_REQUIRE(!atf_fs_stat_is_other_readable(&s2));
855 ATF_REQUIRE(!atf_fs_stat_is_other_writable(&s2));
856 ATF_REQUIRE(!atf_fs_stat_is_other_executable(&s2));
876 ATF_REQUIRE(mkdir("dir", 0555) != -1);
881 ATF_REQUIRE(atf_is_error(err));
882 ATF_REQUIRE(atf_error_is(err, "libc"));
908 ATF_REQUIRE(atf_is_error(err));
909 ATF_REQUIRE(atf_error_is(err, "invalid_umask"));
954 ATF_REQUIRE(!atf_equal_fs_path_fs_path(&p1, &p2));
955 ATF_REQUIRE(exists(&p1));
956 ATF_REQUIRE(exists(&p2));
1008 ATF_REQUIRE(mkdir("dir", 0555) != -1);
1014 ATF_REQUIRE(atf_is_error(err));
1015 ATF_REQUIRE(atf_error_is(err, "libc"));