Skip sparse test on non-sparse file systems

* tests/sparse05.at (listing sparse files bigger than 2^33 B):
If there were problems generating BIGFILE remove it,
as it has likely exhausted the file system.
Problem found on Darwin 21.6 APFS.
This commit is contained in:
Paul Eggert
2025-11-15 12:55:06 -08:00
parent 453d903de9
commit 8d8e441bb5

View File

@@ -34,7 +34,10 @@ AT_DATA([mapfile],
[0 =2560
m4_for([i], 1, 999, 1, [10M =2560
])])
genfile --sparse --file BIGFILE --block-size 4K - < mapfile || AT_SKIP_TEST
genfile --sparse --file BIGFILE --block-size 4K - < mapfile || {
rm -f BIGFILE
AT_SKIP_TEST
}
tar -f - -c --sparse --posix BIGFILE | tar tvf - | awk '{ print $3, $(NF) }'
],
[0],