Add require root user to test_case_xfail. Avoids reporting expected

failure for the wrong reason with unprivileged runs (puffs access
denied).
This commit is contained in:
njoly 2011-05-17 22:01:41 +00:00
parent c5191c6734
commit 59bc3aabda

View File

@ -44,6 +44,9 @@ test_case_xfail()
local check_function="${1}"; shift
atf_test_case "${name}" cleanup
eval "${name}_head() { \
atf_set "require.user" "root" ; \
}"
eval "${name}_body() { \
atf_expect_fail "${reason}" ; \
${check_function} " "${@}" "; \