summaryrefslogtreecommitdiffstats
path: root/tests/main.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix includesTavian Barnes2024-08-291-1/+0
|
* build: Move feature test macros to prelude.hTavian Barnes2024-08-281-1/+0
| | | | | | This replaces the explicit CPPFLAGS list in flags.mk with just `-include src/prelude.h`, shortening our compiler command lines and allowing them to be easily documented.
* prelude: Split bfs-specific utilities into new bfs.h headerTavian Barnes2024-08-281-0/+2
|
* prelude: Define thread_localTavian Barnes2024-08-281-1/+0
|
* tests: Simplify unit tests with a global variableTavian Barnes2024-07-071-2/+17
| | | | | It's a little awkward to thread the test result through manually; much easier to just make bfs_check() update a global variable.
* list: New SLIST_SPLICE() macroTavian Barnes2024-05-311-0/+1
|
* diag: New helpers to include xstrerror(errno) automaticallyTavian Barnes2024-05-171-5/+0
|
* sighook: New utilities for hooking signalsTavian Barnes2024-05-161-0/+1
| | | | This allows multiple hooks to be installed for a single signal.
* Rename config.h to prelude.hTavian Barnes2024-04-191-1/+1
|
* tests: Add ../src to the include pathTavian Barnes2024-04-191-3/+3
|
* tests/xspawn: New unit testTavian Barnes2024-03-271-0/+1
|
* tests: New bfs_pcheck() macro to report xstrerror(errno)Tavian Barnes2024-03-271-0/+6
|
* Re-run include-what-you-useTavian Barnes2024-03-111-3/+0
|
* xtime: Call tzset() from main() instead of lazilyTavian Barnes2024-03-071-0/+14
| | | | | | | | | | | | | 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/ioq: New unit testTavian Barnes2024-02-281-0/+1
|
* tests: Merge unit test executables into oneTavian Barnes2024-01-121-0/+106