]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tests: cp/sparse-perf: make more robust and add zfs comments
authorPádraig Brady <P@draigBrady.com>
Sat, 25 Sep 2021 13:23:37 +0000 (14:23 +0100)
committerPádraig Brady <P@draigBrady.com>
Sat, 25 Sep 2021 21:40:01 +0000 (22:40 +0100)
commit61c81ffaacb0194dec31297bc1aa51be72315858
tree835706429277b371b956d00dc15f66ec0be3926e
parente8b56ebd536e82b15542a00c888109471936bfda
tests: cp/sparse-perf: make more robust and add zfs comments

* init.cfg (seek_data_capable_): Add a timeout to ensure failure for
slow lseek(...SEEK_DATA) calls (even if that syscall isn't interrupted).
* tests/cp/sparse-perf.sh: Run the SEEK_DATA check on the
1TiB empty file to exclude both FreeBSD 9.1 which takes 35s,
and ZFS which requires a delay of about 5s between file creation
and use of SEEK_DATA to correctly determine it's empty (return ENXIO).
Also remove the stat size checks as they invalidate the test
due to cp never writing data due to it being always zeros,
and thus converted to holes in the output.
init.cfg
tests/cp/sparse-perf.sh