summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-02-19 13:18:08 -0800
committerJunio C Hamano <gitster@pobox.com>2019-02-19 13:18:08 -0800
commit2c804ffe77777f420c1d887ece8c472cf7b9d490 (patch)
tree8e30df330dbdbaffd6bd7df5323279c4ec49de3a
parent455d0beb1393618b5ab32cc6ea671aa32c6ab1d8 (diff)
parent709417507567d1423acd06f55fb6256af7ad3847 (diff)
downloadgit-2c804ffe77777f420c1d887ece8c472cf7b9d490.tar.gz
Merge branch 'mk/t5562-no-input-to-too-large-an-input-test'
* mk/t5562-no-input-to-too-large-an-input-test: t5562: do not depend on /dev/zero Revert "t5562: replace /dev/zero with a pipe from generate_zero_bytes"
-rwxr-xr-xt/t5562-http-backend-content-length.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t5562-http-backend-content-length.sh b/t/t5562-http-backend-content-length.sh
index f36c7f4f9d..f0f425b2cf 100755
--- a/t/t5562-http-backend-content-length.sh
+++ b/t/t5562-http-backend-content-length.sh
@@ -143,14 +143,14 @@ test_expect_success GZIP 'push gzipped empty' '
test_expect_success 'CONTENT_LENGTH overflow ssite_t' '
NOT_FIT_IN_SSIZE=$(ssize_b100dots) &&
- generate_zero_bytes infinity | env \
+ env \
CONTENT_TYPE=application/x-git-upload-pack-request \
QUERY_STRING=/repo.git/git-upload-pack \
PATH_TRANSLATED="$PWD"/.git/git-upload-pack \
GIT_HTTP_EXPORT_ALL=TRUE \
REQUEST_METHOD=POST \
CONTENT_LENGTH="$NOT_FIT_IN_SSIZE" \
- git http-backend >/dev/null 2>err &&
+ git http-backend </dev/null >/dev/null 2>err &&
grep "fatal:.*CONTENT_LENGTH" err
'