]> git.ipfire.org Git - thirdparty/git.git/commit - t/test-lib-functions.sh
test-lib-functions.sh: add generate_zero_bytes function
authorRandall S. Becker <rsbecker@nexbridge.com>
Sat, 9 Feb 2019 18:59:28 +0000 (13:59 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 12 Feb 2019 17:09:06 +0000 (09:09 -0800)
commitb0fa1a3f997403bc444cd7a65d798185e9d548ca
treed2d04707bf814b3e3587bd71adcdbbc4eabfdd14
parente9bd4aa026178caeed76ca00d9034c9dfdb3eefb
test-lib-functions.sh: add generate_zero_bytes function

t5318 and t5562 used /dev/zero, which is not portable. This function
provides both a fixed block of NUL bytes and an infinite stream of NULs.

Signed-off-by: Randall S. Becker <rsbecker@nexbridge.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib-functions.sh