t5310: drop size of truncated ewah bitmap
authorJeff King <peff@peff.net>
Tue, 8 Dec 2020 22:03:28 +0000 (17:03 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 8 Dec 2020 22:48:15 +0000 (14:48 -0800)
commitc5cd7490762b20cdec3844e99cfc908c38917906
tree5918954ef1f28c3a5b9af7c52eaca8241a836901
parentec6c7b43679fcd7db00019a850636abc5c94e44e
t5310: drop size of truncated ewah bitmap

We truncate the .bitmap file to 512 bytes and expect to run into
problems reading an individual ewah file. But this length is somewhat
arbitrary, and just happened to work when the test was added in
9d2e330b17 (ewah_read_mmap: bounds-check mmap reads, 2018-06-14).

An upcoming commit will change the size of the history we create in the
test repo, which will cause this test to fail. We can future-proof it a
bit more by reducing the size of the truncated bitmap file.

Signed-off-by: Jeff King <peff@peff.net>
Helped-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5310-pack-bitmaps.sh