Mark testcases which use cap_enter as expected failures until the

PR is resolved so those of us that run the tests don't have the
bogus failures counted against our overall results

PR:	215690
This commit is contained in:
Enji Cooper 2017-01-15 09:13:41 +00:00
parent 9763fbf7ef
commit 437999a767
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=312215

View File

@ -124,6 +124,8 @@ ATF_TC_BODY(lookup_cap_dotdot__basic, tc)
cap_rights_init(&rights, CAP_LOOKUP, CAP_READ);
ATF_REQUIRE(cap_rights_limit(dirfd, &rights) >= 0);
atf_tc_expect_signal(SIGABRT, "needs change done upstream in atf/kyua according to cem: bug 215690");
ATF_REQUIRE(cap_enter() >= 0);
ATF_REQUIRE_MSG(openat(dirfd, "d1/..", O_RDONLY) >= 0, "%s",
@ -144,6 +146,8 @@ ATF_TC_BODY(lookup_cap_dotdot__advanced, tc)
check_capsicum();
prepare_dotdot_tests();
atf_tc_expect_signal(SIGABRT, "needs change done upstream in atf/kyua according to cem: bug 215690");
cap_rights_init(&rights, CAP_LOOKUP, CAP_READ);
ATF_REQUIRE(cap_rights_limit(dirfd, &rights) >= 0);
@ -187,6 +191,8 @@ ATF_TC_BODY(capmode__negative, tc)
check_capsicum();
prepare_dotdot_tests();
atf_tc_expect_signal(SIGABRT, "needs change done upstream in atf/kyua according to cem: bug 215690");
ATF_REQUIRE(cap_enter() == 0);
/* open() not permitted in capability mode */
@ -225,6 +231,8 @@ ATF_TC_BODY(lookup_cap_dotdot__negative, tc)
cap_rights_init(&rights, CAP_LOOKUP, CAP_READ);
ATF_REQUIRE(cap_rights_limit(dirfd, &rights) >= 0);
atf_tc_expect_signal(SIGABRT, "needs change done upstream in atf/kyua according to cem: bug 215690");
ATF_REQUIRE(cap_enter() >= 0);
ATF_REQUIRE_ERRNO(ENOTCAPABLE, openat(dirfd, "..", O_RDONLY) < 0);