]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: restrict a recent SELinux test to SELinux systems
authorPádraig Brady <P@draigBrady.com>
Tue, 14 Jan 2014 11:30:51 +0000 (11:30 +0000)
committerPádraig Brady <P@draigBrady.com>
Tue, 14 Jan 2014 13:51:15 +0000 (13:51 +0000)
* 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
tests/cp/no-ctx.sh

index 3b5eb829ac00a06d878d8c28e4b857f2723e8f24..059c84f80449dbaf5ed65a2faccb74e35c898057 100755 (executable)
@@ -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_