summaryrefslogtreecommitdiff
path: root/tests/misc/selinux
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/selinux')
-rwxr-xr-xtests/misc/selinux22
1 files changed, 4 insertions, 18 deletions
diff --git a/tests/misc/selinux b/tests/misc/selinux
index 3e2aae5e2..90ab2d6c4 100755
--- a/tests/misc/selinux
+++ b/tests/misc/selinux
@@ -10,29 +10,15 @@ if test "$VERBOSE" = yes; then
stat --version
fi
-. $srcdir/../envvar-check
. $srcdir/../lang-default
. $srcdir/../selinux
PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
+. $srcdir/../test-lib.sh
# Create a regular file, dir, fifo.
-touch f || framework_failure=1
-mkdir d s1 s2 || framework_failure=1
-mkfifo p || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
+touch f || framework_failure
+mkdir d s1 s2 || framework_failure
+mkfifo p || framework_failure
fail=0