Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/sbin/resize_ffs Add require root user to test_case_xfa...



details:   https://anonhg.NetBSD.org/src/rev/7ecacb7bd5ad
branches:  trunk
changeset: 765054:7ecacb7bd5ad
user:      njoly <njoly%NetBSD.org@localhost>
date:      Tue May 17 22:01:41 2011 +0000

description:
Add require root user to test_case_xfail. Avoids reporting expected
failure for the wrong reason with unprivileged runs (puffs access
denied).

diffstat:

 tests/sbin/resize_ffs/common.sh |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r 22200495d6bc -r 7ecacb7bd5ad tests/sbin/resize_ffs/common.sh
--- a/tests/sbin/resize_ffs/common.sh   Tue May 17 21:56:51 2011 +0000
+++ b/tests/sbin/resize_ffs/common.sh   Tue May 17 22:01:41 2011 +0000
@@ -44,6 +44,9 @@
        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} " "${@}" "; \



Home | Main Index | Thread Index | Old Index