summaryrefslogtreecommitdiff
path: root/tests/misc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc')
-rwxr-xr-xtests/misc/chcon2
-rwxr-xr-xtests/misc/selinux2
2 files changed, 3 insertions, 1 deletions
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
diff --git a/tests/misc/selinux b/tests/misc/selinux
index 67de51ea3..847ccac2c 100755
--- a/tests/misc/selinux
+++ b/tests/misc/selinux
@@ -11,9 +11,9 @@ if test "$VERBOSE" = yes; then
fi
. $srcdir/../lang-default
-. $srcdir/../selinux
. $srcdir/../test-lib.sh
skip_if_root_
+require_selinux_
# Create a regular file, dir, fifo.
touch f || framework_failure