From 7407dc042ae4c0dc1599cd9ce1e73deb6f62da7f Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 11 Dec 2007 21:26:32 +0100 Subject: Add a test to exercise today's bug fix. * tests/misc/selinux: Test for today's bug fix. * NEWS: Mention the SELinux "ls -l" fix. --- tests/misc/selinux | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/misc/selinux b/tests/misc/selinux index 847ccac2c..542d6e799 100755 --- a/tests/misc/selinux +++ b/tests/misc/selinux @@ -36,6 +36,9 @@ for i in d f p; do c=`stat --printf %C $i`; test x$c = x$ctx || fail=1 done +# ensure that ls -l output includes the "+". +c=`ls -l f|cut -c11`; test "$c" = + || fail=1 + # Copy each to a new directory and ensure that context is preserved. cp -r --preserve=all d f p s1 || fail=1 for i in d f p; do -- cgit v1.2.3-70-g09d2