]> git.ipfire.org Git - thirdparty/git.git/commit
t0006: simplify prerequisites
authorJunio C Hamano <gitster@pobox.com>
Tue, 25 Jun 2024 23:12:47 +0000 (16:12 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 26 Jun 2024 00:07:26 +0000 (17:07 -0700)
commita59275d5d6ccd5c40e1515bf2e3acc71e7dae8ae
tree5f5591011e6ab2a2e276b0194320b53e30c21ff9
parent786a3e4b8d754d2b14b1208b98eeb0a554ef19a8
t0006: simplify prerequisites

The system must support 64-bit time and its time_t must be 64-bit
wide to pass these tests.  Combine these two prerequisites together
to simplify the tests.  In theory, they could be fulfilled
independently and tests could require only one without the other,
but in practice, these must come hand-in-hand.

Update the "check_parse" test helper to pay attention to the
REQUIRE_64BIT_TIME variable, which can be set to the HAVE_64BIT_TIME
prerequisite so that a parse test can be skipped on 32-bit systems.
This will be used in the next step to skip tests for timestamps near
the end of year 2099, as 32-bit systems will not be able to express
a timestamp beyond 2038 anyway.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0006-date.sh