]> git.ipfire.org Git - thirdparty/tar.git/commitdiff
Skip sparse test on non-sparse file systems
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 15 Nov 2025 20:55:06 +0000 (12:55 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 15 Nov 2025 23:10:48 +0000 (15:10 -0800)
* 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.

tests/sparse05.at

index 8242ba7c7efbb0001b21cc628d32a92ce8ace5e1..f03dc04ac0b013aae68b11fefbcff2e90d1bbc8b 100644 (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],