mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-21 11:52:12 +00:00

Also use git_time_t (64-bit integer) for time values, although the 2038 problem is still present on 32-bit machines.
14 lines
291 B
C
14 lines
291 B
C
#include "clar_libgit2.h"
|
|
|
|
#include "date.h"
|
|
|
|
void test_date_date__overflow(void)
|
|
{
|
|
git_time_t d2038, d2039;
|
|
|
|
/* This fails on a 32-bit machine. */
|
|
cl_git_pass(git__date_parse(&d2038, "2038-1-1"));
|
|
cl_git_pass(git__date_parse(&d2039, "2039-1-1"));
|
|
cl_assert(d2038 < d2039);
|
|
}
|