projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef13885
)
tests: skip a root-only test when configured without libcap
author
Jim Meyering
<meyering@redhat.com>
Thu, 2 Oct 2008 13:54:36 +0000
(15:54 +0200)
committer
Jim Meyering
<meyering@redhat.com>
Thu, 2 Oct 2008 13:54:36 +0000
(15:54 +0200)
* tests/ls/capability: Test for HAVE_CAP definition in config.h.
tests/ls/capability
patch
|
blob
|
history
diff --git
a/tests/ls/capability
b/tests/ls/capability
index
f064348
..
6336ca1
100755
(executable)
--- 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