date.c 328 Bytes
Newer Older
1 2
#include "clar_libgit2.h"

3
#include "util.h"
4 5 6

void test_date_date__overflow(void)
{
7
#ifdef __LP64__
8 9
   git_time_t d2038, d2039;

10
   /* This is expected to fail on a 32-bit machine. */
11 12 13
   cl_git_pass(git__date_parse(&d2038, "2038-1-1"));
   cl_git_pass(git__date_parse(&d2039, "2039-1-1"));
   cl_assert(d2038 < d2039);
14
#endif
15
}