From 6478e334382965fcb0c21cf7cac987180d7078cc Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Wed, 15 Jan 2020 21:10:54 -0800 Subject: [PATCH] xfs/507: skip if we can't create a large sparse file for testing Skip this test we can't create the large sparse file needed to test overflows. Signed-off-by: Darrick J. Wong Reviewed-by: Christoph Hellwig Signed-off-by: Eryu Guan --- tests/xfs/507 | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/xfs/507 b/tests/xfs/507 index 0bb697f9..fac5d243 100755 --- a/tests/xfs/507 +++ b/tests/xfs/507 @@ -68,6 +68,7 @@ _require_fs_space $SCRATCH_MNT 1234567 loop_file=$SCRATCH_MNT/a.img loop_mount=$SCRATCH_MNT/a $XFS_IO_PROG -f -c "truncate $loop_file_sz" $loop_file +test -s $loop_file || _notrun "Could not create large sparse file" loop_dev=$(_create_loop_device $loop_file) # Now we have to create the source file. The goal is to overflow a 32-bit -- 2.39.5