Commit 70941750 authored by Max A.K.'s avatar Max A.K. Committed by Junio C Hamano

t5562: do not depend on /dev/zero

It was reported [1] that NonStop platform does not have /dev/zero.

The test uses /dev/zero as a dummy input. Passing case (http-backed
failed because of too big input size) should not be reading anything
from it. If http-backend would erroneously try to read any data
returning EOF probably would be even safer than providing some
meaningless data.

Replace /dev/zero with /dev/null to avoid issues with platforms which do
not have /dev/zero.

[1] default avatarRandall S. Becker <>
Signed-off-by: Max A.K.'s avatarMax Kirillov <>
Signed-off-by: default avatarJunio C Hamano <>
parent d9919482
......@@ -150,7 +150,7 @@ test_expect_success 'CONTENT_LENGTH overflow ssite_t' '
git http-backend </dev/zero >/dev/null 2>err &&
git http-backend </dev/null >/dev/null 2>err &&
grep "fatal:.*CONTENT_LENGTH" err
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment