@@ -254,6 +254,7 @@
/dmapi/src/suite2/src/test_rights
# Symlinked files
+/tests/generic/035.out
/tests/xfs/033.out
/tests/xfs/071.out
/tests/xfs/096.out
@@ -2848,7 +2848,7 @@ _link_out_file()
local features
if [ $# -eq 0 ]; then
- features="$(_get_os_name)"
+ features="$(_get_os_name),$FSTYP"
if [ -n "$MOUNT_OPTIONS" ]; then
features=$features,${MOUNT_OPTIONS##"-o "}
fi
@@ -6,6 +6,7 @@
#
# Check overwriting rename system call
#
+seqfull=$0
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
@@ -29,6 +30,9 @@ _supported_os Linux
_require_test
+# Select appropriate golden output based on fstype
+_link_out_file
+
# real QA test starts here
rename_dir=$TEST_DIR/$$
new file mode 100644
@@ -0,0 +1 @@
+nfs: nfs
similarity index 100%
rename from tests/generic/035.out
rename to tests/generic/035.out.default
new file mode 100644
@@ -0,0 +1,5 @@
+QA output created by 035
+overwriting regular file:
+nlink is 1, should be 0
+overwriting directory:
+t_rename_overwrite: fstat(3): Stale file handle