summaryrefslogtreecommitdiffstats
path: root/tests/xtime.c
Commit message (Collapse)AuthorAgeFilesLines
* tests: Simplify unit tests with a global variableTavian Barnes2024-07-071-66/+50
| | | | | It's a little awkward to thread the test result through manually; much easier to just make bfs_check() update a global variable.
* diag: New helpers to include xstrerror(errno) automaticallyTavian Barnes2024-05-171-4/+4
|
* xtime: Use the libc's timegm() if presentTavian Barnes2024-05-061-4/+8
|
* Rename config.h to prelude.hTavian Barnes2024-04-191-1/+1
|
* tests: Add ../src to the include pathTavian Barnes2024-04-191-4/+4
|
* tests: New bfs_pcheck() macro to report xstrerror(errno)Tavian Barnes2024-03-271-3/+3
|
* xtime: Don't update tm if xtimegm() overflowsTavian Barnes2024-03-261-12/+22
|
* Re-run include-what-you-useTavian Barnes2024-03-111-2/+2
|
* tests/xtime: Add tests for integer overflowTavian Barnes2024-03-101-0/+28
|
* xtime: Call tzset() from main() instead of lazilyTavian Barnes2024-03-071-8/+2
| | | | | | | | | | | | | POSIX specifies[1] that If a thread accesses tzname, daylight, or timezone directly while another thread is in a call to tzset(), or to any function that is required or allowed to set timezone information as if by calling tzset(), the behavior is undefined. So calling it lazily from arbitrary threads is risky. [1]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/tzset.html
* tests: New bfs_check() macroTavian Barnes2024-02-291-120/+100
| | | | | We now report failures and continue, rather than aborting after the first failure.
* tests: Add more datetime parsing integration testsTavian Barnes2024-02-291-3/+3
|
* xtime: Fix some xgetdate() bugsTavian Barnes2024-02-281-9/+93
| | | | And add some more test cases.
* tests: Merge unit test executables into oneTavian Barnes2024-01-121-0/+95