hash-object: add another >4GB/LLP64 test case

To complement the `--stdin` and `--literally` test cases that verify that we can hash files larger than 4GB on 64-bit platforms using the LLP64 data model, here is a test case that exercises `hash-object` _without_ any options. Just as before, we use the `big` file from the previous test case if it exists to save on setup time, otherwise generate it. Signed-off-by: Philip Oakley <philipoakley@iee.email> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Philip Oakley committed Jun 16, 2026 at 14:49 UTC 2fefea368287f225c1b050453fe16149ab4eae8f
1 file changed +8
t/t1007-hash-object.sh
+8
@@ -277,4 +277,12 @@ test_expect_success EXPENSIVE,SIZE_T_IS_64BIT \
277 test_cmp expect actual
278 '
279
280 +test_expect_success EXPENSIVE,SIZE_T_IS_64BIT \
281 + 'files over 4GB hash correctly' '
282 + { test -f big || test-tool genzeros $((5*1024*1024*1024)) >big; } &&
283 + test_oid large5GB >expect &&
284 + git hash-object -- big >actual &&
285 + test_cmp expect actual
286 +'
287 +
288 test_done