diff options
author | Jim Meyering <meyering@redhat.com> | 2008-10-02 15:54:36 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-10-02 15:54:36 +0200 |
commit | 7eb15e1020590ebc1f39e5679feea8f1106d241c (patch) | |
tree | 971fef3bc1fecdeb0ea55d4d33e2f965b893a8b5 /tests/ls/capability | |
parent | ef13885b37646279d893fa18e269712ccb7a088f (diff) | |
download | coreutils-7eb15e1020590ebc1f39e5679feea8f1106d241c.tar.xz |
tests: skip a root-only test when configured without libcap
* tests/ls/capability: Test for HAVE_CAP definition in config.h.
Diffstat (limited to 'tests/ls/capability')
-rwxr-xr-x | tests/ls/capability | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ls/capability b/tests/ls/capability index f064348ef..6336ca116 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 |