summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2014-01-14 11:30:51 +0000
committerPádraig Brady <P@draigBrady.com>2014-01-14 13:51:15 +0000
commit745de6dca52ef32cdaf9c459414b53d8a48459c3 (patch)
treed9d42d3c3ce7f86dd69439d9d41a4e53a1b6a034 /tests
parentd718331e59afb35e56445f3a1597ed74a7f3a3e2 (diff)
downloadcoreutils-745de6dca52ef32cdaf9c459414b53d8a48459c3.tar.xz
tests: restrict a recent SELinux test to SELinux systems
* tests/cp/no-ctx.sh: Since the test diagnoses whether the intercepted lgetfilecon() calls are actually called or not, restrict the test to systems where that occurs. The test cases are minimal on non SELinux systems and should be well covered by other tests. Reported-by: Bernhard Voelker
Diffstat (limited to 'tests')
-rwxr-xr-xtests/cp/no-ctx.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/cp/no-ctx.sh b/tests/cp/no-ctx.sh
index 3b5eb829a..059c84f80 100755
--- a/tests/cp/no-ctx.sh
+++ b/tests/cp/no-ctx.sh
@@ -22,6 +22,7 @@
. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
print_ver_ cp
require_gcc_shared_
+require_selinux_
# Replace each getfilecon and lgetfilecon call with a call to these stubs.
cat > k.c <<'EOF' || framework_failure_