From: Jim Meyering Date: Thu, 2 Oct 2008 13:54:36 +0000 (+0200) Subject: tests: skip a root-only test when configured without libcap X-Git-Tag: v7.0~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7eb15e1020590ebc1f39e5679feea8f1106d241c;p=thirdparty%2Fcoreutils.git tests: skip a root-only test when configured without libcap * tests/ls/capability: Test for HAVE_CAP definition in config.h. --- diff --git a/tests/ls/capability b/tests/ls/capability index f064348ef7..6336ca1166 100755 --- a/tests/ls/capability +++ b/tests/ls/capability @@ -24,6 +24,9 @@ fi . $srcdir/test-lib.sh require_root_ +grep '^#define HAVE_CAP 1$' $CONFIG_HEADER > /dev/null \ + || skip_test_ "configured without libcap support" + (setcap --help) 2>&1 |grep 'usage: setcap' > /dev/null \ || skip_test_ "setcap utility not found" fail=0