History log of /src/tests/lib/libc/time/t_mktime.c |
Revision | | Date | Author | Comments |
1.6 |
| 27-Oct-2017 |
kre | Remove bogus errno checks, mktime() (and timegm()) does not guarantee to leave errno unaltered if there is no error. And does not.
While here, write -1 the same way everyone else does (not ~0, which would not even be negative on a 1's complement host, if you can find one).
And while not needed for the test, but so that if checked, the result is more likely to be what is anticipated, set tm_mday to an in-range value in the mtime_negyear test (otherwise the correction results in the result movng backwards to the last day of the previous month, which is the end of Decemper, 1898, rather than the 1899 one would expect from year -1.)
|
1.5 |
| 18-Mar-2012 |
jruoho | Add a test case for the old NetBSD 2.0 era PR lib/28324.
|
1.4 |
| 07-Jan-2012 |
martin | ATF_REQUIRE_ERRNO() needs to be used with care: - pass the expected errno to it, not "errno" - make sure to have errno set already before invoking the macro, i.e. do not use it to test errno changes as side effect of the asserted expression
Spotted by mlelstv, makes the epoch tests correctly fail on amd64 as well.
|
1.3 |
| 17-Dec-2011 |
apb | Add some tests for timegm(3) close to the epoch. In particular, 1969-12-31 23:59:59 should convert to (time_t)-1 with errno = 0.
|
1.2 |
| 07-Apr-2011 |
jruoho | branches: 1.2.4; Remove the following (literal) text in the TNF copyrights:
* This code is derived from software contributed to The NetBSD Foundation * by *
XXX: If these originated from you and you want your name to be mentioned, please add it.
|
1.1 |
| 13-Jan-2011 |
pgoyette | Move t_mktime and t_strptime to their own ..../time/ subdirectory.
(Concurrence from christos@)
|
1.2.4.1 |
| 17-Apr-2012 |
yamt | sync with head
|