From: Pádraig Brady Date: Tue, 14 Jan 2014 11:30:51 +0000 (+0000) Subject: tests: restrict a recent SELinux test to SELinux systems X-Git-Tag: v8.23~148 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=745de6dca52ef32cdaf9c459414b53d8a48459c3;p=thirdparty%2Fcoreutils.git 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 --- diff --git a/tests/cp/no-ctx.sh b/tests/cp/no-ctx.sh index 3b5eb829ac..059c84f804 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_