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:
parent
1c836fb168
commit
7add092f75
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user