path: root/t/
diff options
authorJohannes Schindelin <>2017-04-20 20:58:21 (GMT)
committerJunio C Hamano <>2017-04-21 05:07:15 (GMT)
commitefac8ac84b8802d654d517468dbe822273b316df (patch)
treef7311b5b7a9f62d0dd8d98f30b80cf84618f77e1 /t/
parenta07fb0507fdf745704e54d77aa19780580636f56 (diff)
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 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 <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 't/')
1 files changed, 1 insertions, 1 deletions
diff --git a/t/ b/t/
index 997aa9d..fe2d4f1 100755
--- a/t/
+++ b/t/
@@ -402,7 +402,7 @@ test_expect_success TIME_IS_64BIT 'generate tar with future mtime' '
git archive HEAD >future.tar
-test_expect_success TAR_HUGE,TIME_IS_64BIT 'system tar can read our future mtime' '
+test_expect_success TAR_HUGE,TIME_IS_64BIT,TIME_T_IS_64BIT 'system tar can read our future mtime' '
echo 4147 >expect &&
tar_info future.tar | cut -d" " -f2 >actual &&
test_cmp expect actual