t0006 & t5000: skip "far in the future" test when time_t is too limited
commitefac8ac84b8802d654d517468dbe822273b316df
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 20 Apr 2017 20:58:21 +0000 (20 22:58 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 21 Apr 2017 05:07:15 +0000 (20 22:07 -0700)
treef7311b5b7a9f62d0dd8d98f30b80cf84618f77e1
parenta07fb0507fdf745704e54d77aa19780580636f56
t0006 & t5000: skip "far in the future" test when time_t is too limited

Git's source code refers to timestamps as unsigned long, which is
ill-defined, as there is no guarantee about the number of bits that
data type has.

In preparation of switching to another data type that is large enough
to hold "far in the future" dates, we need to prepare the t0006-date.sh
script for the case where we *still* cannot format those dates if the
system library uses 32-bit time_t.

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/helper/test-date.c
t/t0006-date.sh
t/t5000-tar-tree.sh
t/test-lib.sh