libgit2/tests-clar/date/date.c
Ben Straub dd9e4abc1b Approxidate: use libgit2 naming/calling conventions.
Also use git_time_t (64-bit integer) for time
values, although the 2038 problem is still present
on 32-bit machines.
2012-05-30 11:46:42 -07:00

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);
}