1 /* Note: we disable this on uClibc because we dont bother
2 * verifying if the year is sane ... we just return ????
3 * for the year value ...
16 time_t t
= time (NULL
);
17 struct tm
*tp
= localtime (&t
);
18 tp
->tm_year
= INT_MAX
;
20 char *s
= asctime (tp
);
21 if (s
!= NULL
|| errno
!= EOVERFLOW
)
23 printf ("asctime did not fail correctly: s=%p, wanted %p; errno=%i, wanted %i\n",
24 s
, NULL
, errno
, EOVERFLOW
);
29 s
= asctime_r (tp
, buf
);
30 if (s
!= NULL
|| errno
!= EOVERFLOW
)
32 printf ("asctime_r did not fail correctly: s=%p, wanted %p; errno=%i, wanted %i\n",
33 s
, NULL
, errno
, EOVERFLOW
);
39 #define TEST_FUNCTION do_test ()
40 #include "../test-skeleton.c"