]> git.ipfire.org Git - thirdparty/git.git/commit
test-genzeros: allow more than 2G zeros in Windows
authorCarlo Marcelo Arenas Belón <carenas@gmail.com>
Tue, 2 Nov 2021 15:46:04 +0000 (15:46 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 3 Nov 2021 18:22:26 +0000 (11:22 -0700)
commitcbc985a1f403a09dd22511aca3e6699d3f3c1c7c
tree1e973b430d2864b93c0708d4b7bdf62aa19f1398
parentebf3c04b262aa27fbb97f8a0156c2347fecafafb
test-genzeros: allow more than 2G zeros in Windows

d5cfd142ec (tests: teach the test-tool to generate NUL bytes and
use it, 2019-02-14), add a way to generate zeroes in a portable
way without using /dev/zero (needed by HP NonStop), but uses a
long variable that is limited to 2^31 in Windows.

Use instead a (POSIX/C99) intmax_t that is at least 64bit wide
in 64-bit Windows to use in a future test.

Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/helper/test-genzeros.c