From: Darrick J. Wong Date: Tue, 2 Mar 2021 23:22:39 +0000 (-0800) Subject: generic/623: don't fail on core dumps X-Git-Tag: v2022.05.01~544 X-Git-Url: http://git.apps.os.sepia.ceph.com/?p=xfstests-dev.git;a=commitdiff_plain;h=71636cfbaf358931012d94fbaeed53ddfa6cea7d generic/623: don't fail on core dumps This test is designed to fail an mmap write and see what happens. Typically this is a segmentation fault. If the user's computer is configured to capture core dumps, this will cause the test to fail, even though we got the reaction we wanted. Signed-off-by: Darrick J. Wong Reviewed-by: Chandan Babu R Reviewed-by: Christoph Hellwig Signed-off-by: Eryu Guan --- diff --git a/tests/generic/623 b/tests/generic/623 index 7be38955..04411405 100755 --- a/tests/generic/623 +++ b/tests/generic/623 @@ -37,6 +37,7 @@ _scratch_mount # status on the page. file=$SCRATCH_MNT/file $XFS_IO_PROG -fc "pwrite 0 4k" -c fsync $file | _filter_xfs_io +ulimit -c 0 $XFS_IO_PROG -x -c "mmap 0 4k" -c "mwrite 0 4k" -c shutdown -c fsync \ -c "mwrite 0 4k" $file | _filter_xfs_io