#
# Test clearing of capabilities on write.
#
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
+. ./common/preamble
+_begin_fstest attr cap auto
-here=`pwd`
-tmp=/tmp/$$
-status=1 # FAILure is the default!
-trap "_cleanup; exit \$status" 0 1 2 3 15
-
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
. ./common/filter
. ./common/attr
+# Override the default cleanup function.
_cleanup()
{
[ -n "$TEST_DIR" ] && rm -f $file
_require_command "$SETCAP_PROG" "setcap"
_require_command "$GETCAP_PROG" "getcap"
-rm -f $seqres.full
-
-echo "QA output created by $seq"
echo ""
file=$TEST_DIR/$seq.file