summaryrefslogtreecommitdiff
path: root/tests/cp
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2007-10-09 09:58:27 +0200
committerJim Meyering <meyering@redhat.com>2007-10-09 10:13:39 +0200
commit4597f40b7fa6f93ec798a6f0143b51c1e555a837 (patch)
treed455f2ab3f9aca9f9f8652eadd8d57df6c04d859 /tests/cp
parent91bef1af623fc76d767ffb0af5c6d61c6f6383c5 (diff)
downloadcoreutils-4597f40b7fa6f93ec798a6f0143b51c1e555a837.tar.xz
Skip the chcon test on a system with no SELinux support.
* tests/test-lib.sh (require_selinux_): New function. * tests/misc/chcon: Use it. * tests/misc/selinux: Use it here, too. * tests/cp/cp-a-selinux: and here. * tests/selinux: Remove file. * tests/Makefile.am (EXTRA_DIST): Remove selinux. Reported by Mike Frysinger and Bauke Jan Douma.
Diffstat (limited to 'tests/cp')
-rwxr-xr-xtests/cp/cp-a-selinux2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/cp/cp-a-selinux b/tests/cp/cp-a-selinux
index 8cb5a456c..c0d98bdac 100755
--- a/tests/cp/cp-a-selinux
+++ b/tests/cp/cp-a-selinux
@@ -23,9 +23,9 @@ if test "$VERBOSE" = yes; then
fi
. $srcdir/../lang-default
-. $srcdir/../selinux
PRIV_CHECK_ARG=require-root . $srcdir/../priv-check
. $srcdir/../test-lib.sh
+require_selinux_
cwd=`pwd`
cleanup_() { cd /; umount "$cwd/mnt"; }