test-lib-functions: remove generate_zero_bytes() wrapper

Since d5cfd142ec1 (tests: teach the test-tool to generate NUL bytes and use it, 2019-02-14) the generate_zero_bytes() functions has been a thin wrapper for "test-tool genzeros". Let's have its only user call that directly instead. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ævar Arnfjörð Bjarmason committed Feb 9, 2021 at 22:41 UTC f3ad2bf4712aa41d710ce3eb8207c12dda43710d
2 files changed +1 -8
t/t5318-commit-graph.sh
+1 -1
@@ -529,7 +529,7 @@ corrupt_graph_and_verify() {
529 zero_pos=${4:-${orig_size}} &&
530 printf "$data" | dd of="$objdir/info/commit-graph" bs=1 seek="$pos" conv=notrunc &&
531 dd of="$objdir/info/commit-graph" bs=1 seek="$zero_pos" if=/dev/null &&
532 - generate_zero_bytes $(($orig_size - $zero_pos)) >>"$objdir/info/commit-graph" &&
532 + test-tool genzeros $(($orig_size - $zero_pos)) >>"$objdir/info/commit-graph" &&
533 corrupt_graph_verify "$grepstr"
534
535 }
t/test-lib-functions.sh
-7
@@ -111,13 +111,6 @@ remove_cr () {
111 tr '\015' Q | sed -e 's/Q$//'
112 }
113
114 -# Generate an output of $1 bytes of all zeroes (NULs, not ASCII zeroes).
115 -# If $1 is 'infinity', output forever or until the receiving pipe stops reading,
116 -# whichever comes first.
117 -generate_zero_bytes () {
118 - test-tool genzeros "$@"
119 -}
120 -
114 # In some bourne shell implementations, the "unset" builtin returns
115 # nonzero status when a variable to be unset was not set in the first
116 # place.