mirror of
https://git.savannah.gnu.org/git/tar.git
synced 2026-04-26 03:20:40 +00:00
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:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user