aboutsummaryrefslogtreecommitdiffstats
path: root/t/test-lib-functions.sh
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2021-02-09 22:41:51 +0100
committerJunio C Hamano <gitster@pobox.com>2021-02-10 13:54:34 -0800
commitf3ad2bf4712aa41d710ce3eb8207c12dda43710d (patch)
tree0243ec97c03e32386af333c223b850464b29c502 /t/test-lib-functions.sh
parenttest-lib-functions: move test_set_index_version() to its user (diff)
downloadgit-f3ad2bf4712aa41d710ce3eb8207c12dda43710d.tar.gz
git-f3ad2bf4712aa41d710ce3eb8207c12dda43710d.zip
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>
Diffstat (limited to 't/test-lib-functions.sh')
-rw-r--r--t/test-lib-functions.sh7
1 files changed, 0 insertions, 7 deletions
diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh
index 728bdf9468..55d58b4a6a 100644
--- a/t/test-lib-functions.sh
+++ b/t/test-lib-functions.sh
@@ -111,13 +111,6 @@ remove_cr () {
tr '\015' Q | sed -e 's/Q$//'
}
-# Generate an output of $1 bytes of all zeroes (NULs, not ASCII zeroes).
-# If $1 is 'infinity', output forever or until the receiving pipe stops reading,
-# whichever comes first.
-generate_zero_bytes () {
- test-tool genzeros "$@"
-}
-
# In some bourne shell implementations, the "unset" builtin returns
# nonzero status when a variable to be unset was not set in the first
# place.