Skip to content

Commit 2c804ff

Browse files
committed
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"
2 parents 455d0be + 7094175 commit 2c804ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t5562-http-backend-content-length.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,14 +143,14 @@ test_expect_success GZIP 'push gzipped empty' '
143143

144144
test_expect_success 'CONTENT_LENGTH overflow ssite_t' '
145145
NOT_FIT_IN_SSIZE=$(ssize_b100dots) &&
146-
generate_zero_bytes infinity | env \
146+
env \
147147
CONTENT_TYPE=application/x-git-upload-pack-request \
148148
QUERY_STRING=/repo.git/git-upload-pack \
149149
PATH_TRANSLATED="$PWD"/.git/git-upload-pack \
150150
GIT_HTTP_EXPORT_ALL=TRUE \
151151
REQUEST_METHOD=POST \
152152
CONTENT_LENGTH="$NOT_FIT_IN_SSIZE" \
153-
git http-backend >/dev/null 2>err &&
153+
git http-backend </dev/null >/dev/null 2>err &&
154154
grep "fatal:.*CONTENT_LENGTH" err
155155
'
156156

0 commit comments

Comments
 (0)