common/rc: Add _require_{chown,chmod}()
[xfstests-dev.git] / tests / generic / 193
index 4fa20ffde0fdf577a68dafca743989fcb27b6622..fd0ebbf64239987ec4e8de96bafda3e0e2aa7301 100755 (executable)
@@ -1,26 +1,11 @@
 #! /bin/bash
-# FS QA Test No. 193
-#
-# Test permission checks in ->setattr
-#
-#-----------------------------------------------------------------------
+# SPDX-License-Identifier: GPL-2.0
 # Copyright (c) 2008 Christoph Hellwig.
 #
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License as
-# published by the Free Software Foundation.
-#
-# This program is distributed in the hope that it would be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
+# FS QA Test No. 193
 #
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write the Free Software Foundation,
-# Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-#-----------------------------------------------------------------------
+# Test permission checks in ->setattr
 #
-
 seq=`basename $0`
 seqres=$RESULT_DIR/$seq
 echo "QA output created by $seq"
@@ -68,10 +53,10 @@ _filter_files()
 
 # real QA test starts here
 _supported_fs generic
-_supported_os Linux
 
+_require_test
 _require_user
-_need_to_be_root
+_require_chown
 
 test_root=$TEST_DIR/$seq.$$.root
 test_user=$TEST_DIR/$seq.$$.user