From 4597f40b7fa6f93ec798a6f0143b51c1e555a837 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 9 Oct 2007 09:58:27 +0200 Subject: 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. --- tests/misc/chcon | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/misc/chcon') diff --git a/tests/misc/chcon b/tests/misc/chcon index 46aaf87e3..3307bc970 100755 --- a/tests/misc/chcon +++ b/tests/misc/chcon @@ -9,6 +9,8 @@ fi . $srcdir/../lang-default PRIV_CHECK_ARG=require-root . $srcdir/../priv-check . $srcdir/../test-lib.sh +require_selinux_ + mkdir -p d/sub/s2 || framework_failure touch f g d/sub/1 d/sub/2 || framework_failure -- cgit v1.2.3