summaryrefslogtreecommitdiff
path: root/tests/mkdir
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mkdir')
-rwxr-xr-xtests/mkdir/selinux5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/mkdir/selinux b/tests/mkdir/selinux
index b8ab40472..ddd237cdb 100755
--- a/tests/mkdir/selinux
+++ b/tests/mkdir/selinux
@@ -23,11 +23,12 @@ if test "$VERBOSE" = yes; then
mknod --version
fi
+. $srcdir/test-lib.sh
+
# Note: on an SELinux/enforcing system running mcstransd older than
# mcstrans-0.2.8-1.fc9, the following commands may mistakenly exit
# successfully, in spite of the invalid context string.
-
-. $srcdir/test-lib.sh
+require_selinux_enforcing_
c=invalid-selinux-context
msg="failed to set default file creation context to \`$c':"