t5300, t5302, t5303: Do not use /dev/zero
commitb689ccf6c9eecb9811f60ac69a24cadacf84da44
authorJohannes Sixt <j6t@kdbg.org>
Mon, 17 Nov 2008 08:21:30 +0000 (17 09:21 +0100)
committerJohannes Sixt <j6t@kdbg.org>
Thu, 19 Mar 2009 20:47:15 +0000 (19 21:47 +0100)
treefffaa869f99fb65e0d2836aeba82e02992f2e459
parent0aaaef7b0f83ccd97d586b5c951adcb912af2664
t5300, t5302, t5303: Do not use /dev/zero

We do not have /dev/zero on Windows. This replaces it by data generated
with printf, perl, or echo. Most of the cases do not depend on that the
data is a stream of zero bytes, so we use something printable; nor is an
unlimited stream of data needed, so we produce only as many bytes as the
test cases need.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
t/t5300-pack-object.sh
t/t5302-pack-index.sh
t/t5303-pack-corruption-resilience.sh