mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
Make test 005 work on SuSE kernels, cleanup its use on other platforms too.
Merge of xfs-cmds-melb:slinx:20052a by kenmcd.
This commit is contained in:
@@ -28,9 +28,14 @@
|
|||||||
owner=dxm@sgi.com
|
owner=dxm@sgi.com
|
||||||
|
|
||||||
#
|
#
|
||||||
# note ELOOP limit used to be 32 but changed to 8. Who knows what
|
# Note1: On Linux, ELOOP limit used to be 32 but changed to 8, and lately
|
||||||
# it might be next.
|
# its become 5. Who knows what it might be next.
|
||||||
#
|
# Note2: On IRIX, the limit is around the 30 mark.
|
||||||
|
#
|
||||||
|
# What we are looking for here is: no panic due to blowing the stack;
|
||||||
|
# and that the ELOOP error code is returned at some point (the actual
|
||||||
|
# limit point is unimportant, just checking that we do hit it).
|
||||||
|
#
|
||||||
|
|
||||||
seq=`basename $0`
|
seq=`basename $0`
|
||||||
echo "QA output created by $seq"
|
echo "QA output created by $seq"
|
||||||
@@ -50,20 +55,18 @@ _cleanup()
|
|||||||
|
|
||||||
_touch()
|
_touch()
|
||||||
{
|
{
|
||||||
touch $@ 2>&1 | sed \
|
touch $@ 2>&1 | grep -q 'Too many levels of symbolic links'
|
||||||
-e "s/creating \`//g" \
|
if [ $? -eq 0 ]; then
|
||||||
-e "s/setting times of \`//g" \
|
echo "ELOOP returned. Good."
|
||||||
-e "s/cannot touch \`//g" \
|
else
|
||||||
-e "s/'//g"
|
echo "No ELOOP? Unexpected!"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# get standard environment, filters and checks
|
# get standard environment, filters and checks
|
||||||
. ./common.rc
|
. ./common.rc
|
||||||
. ./common.filter
|
. ./common.filter
|
||||||
|
|
||||||
# link correct .out file
|
|
||||||
_link_out_file $seq.out
|
|
||||||
|
|
||||||
# real QA test starts here
|
# real QA test starts here
|
||||||
_supported_fs xfs udf nfs
|
_supported_fs xfs udf nfs
|
||||||
|
|
||||||
@@ -79,7 +82,7 @@ _setup_testdir
|
|||||||
cd $testdir
|
cd $testdir
|
||||||
|
|
||||||
o=empty_file
|
o=empty_file
|
||||||
_touch $o
|
touch $o
|
||||||
for f in symlink_{0,1,2,3}{0,1,2,3,4,5,6,7,8,9}
|
for f in symlink_{0,1,2,3}{0,1,2,3,4,5,6,7,8,9}
|
||||||
do
|
do
|
||||||
ln -s $o $f
|
ln -s $o $f
|
||||||
@@ -96,6 +99,4 @@ echo "*** touch recusive symlinks"
|
|||||||
echo ""
|
echo ""
|
||||||
_touch symlink_self
|
_touch symlink_self
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
exit
|
exit
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
QA output created by 005
|
||||||
|
*** touch deep symlinks
|
||||||
|
|
||||||
|
ELOOP returned. Good.
|
||||||
|
|
||||||
|
*** touch recusive symlinks
|
||||||
|
|
||||||
|
ELOOP returned. Good.
|
||||||
|
|||||||
@@ -1,17 +0,0 @@
|
|||||||
QA output created by 005
|
|
||||||
*** touch deep symlinks
|
|
||||||
|
|
||||||
Cannot create symlink_30: Too many symbolic links in path name traversal
|
|
||||||
Cannot create symlink_31: Too many symbolic links in path name traversal
|
|
||||||
Cannot create symlink_32: Too many symbolic links in path name traversal
|
|
||||||
Cannot create symlink_33: Too many symbolic links in path name traversal
|
|
||||||
Cannot create symlink_34: Too many symbolic links in path name traversal
|
|
||||||
Cannot create symlink_35: Too many symbolic links in path name traversal
|
|
||||||
Cannot create symlink_36: Too many symbolic links in path name traversal
|
|
||||||
Cannot create symlink_37: Too many symbolic links in path name traversal
|
|
||||||
Cannot create symlink_38: Too many symbolic links in path name traversal
|
|
||||||
Cannot create symlink_39: Too many symbolic links in path name traversal
|
|
||||||
|
|
||||||
*** touch recusive symlinks
|
|
||||||
|
|
||||||
Cannot create symlink_self: Too many symbolic links in path name traversal
|
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
QA output created by 005
|
|
||||||
*** touch deep symlinks
|
|
||||||
|
|
||||||
touch: symlink_05: Too many levels of symbolic links
|
|
||||||
touch: symlink_06: Too many levels of symbolic links
|
|
||||||
touch: symlink_07: Too many levels of symbolic links
|
|
||||||
touch: symlink_08: Too many levels of symbolic links
|
|
||||||
touch: symlink_09: Too many levels of symbolic links
|
|
||||||
touch: symlink_10: Too many levels of symbolic links
|
|
||||||
touch: symlink_11: Too many levels of symbolic links
|
|
||||||
touch: symlink_12: Too many levels of symbolic links
|
|
||||||
touch: symlink_13: Too many levels of symbolic links
|
|
||||||
touch: symlink_14: Too many levels of symbolic links
|
|
||||||
touch: symlink_15: Too many levels of symbolic links
|
|
||||||
touch: symlink_16: Too many levels of symbolic links
|
|
||||||
touch: symlink_17: Too many levels of symbolic links
|
|
||||||
touch: symlink_18: Too many levels of symbolic links
|
|
||||||
touch: symlink_19: Too many levels of symbolic links
|
|
||||||
touch: symlink_20: Too many levels of symbolic links
|
|
||||||
touch: symlink_21: Too many levels of symbolic links
|
|
||||||
touch: symlink_22: Too many levels of symbolic links
|
|
||||||
touch: symlink_23: Too many levels of symbolic links
|
|
||||||
touch: symlink_24: Too many levels of symbolic links
|
|
||||||
touch: symlink_25: Too many levels of symbolic links
|
|
||||||
touch: symlink_26: Too many levels of symbolic links
|
|
||||||
touch: symlink_27: Too many levels of symbolic links
|
|
||||||
touch: symlink_28: Too many levels of symbolic links
|
|
||||||
touch: symlink_29: Too many levels of symbolic links
|
|
||||||
touch: symlink_30: Too many levels of symbolic links
|
|
||||||
touch: symlink_31: Too many levels of symbolic links
|
|
||||||
touch: symlink_32: Too many levels of symbolic links
|
|
||||||
touch: symlink_33: Too many levels of symbolic links
|
|
||||||
touch: symlink_34: Too many levels of symbolic links
|
|
||||||
touch: symlink_35: Too many levels of symbolic links
|
|
||||||
touch: symlink_36: Too many levels of symbolic links
|
|
||||||
touch: symlink_37: Too many levels of symbolic links
|
|
||||||
touch: symlink_38: Too many levels of symbolic links
|
|
||||||
touch: symlink_39: Too many levels of symbolic links
|
|
||||||
|
|
||||||
*** touch recusive symlinks
|
|
||||||
|
|
||||||
touch: symlink_self: Too many levels of symbolic links
|
|
||||||
Reference in New Issue
Block a user