Hayden Roche daf5135642 Begin refactor of api.c.
- Modify all existing tests to return an int. This moves us in the direction of
being able to return error/success from a test rather than just calling abort
when something fails. Also, all tests now have the same signature, so they can
easily be members of an array of test cases.
- Wrap each test in a TEST_CASE struct, which just stores a pointer to the test
function and the name of the test, for now. In the future, other metadata can
be added (e.g. should this test be run/skipped) to TEST_CASE, if desired.
- Modify all tests to return 0 on success. Right now, this doesn't do us much
good because the failure mechanism isn't returning some value != 0, it's
abort.
- Add TestSetup and TestCleanup functions that run before and after each test,
respectively. The former does nothing right now, and the latter clears the
error queue, if the error queue is compiled in.
2022-07-21 10:12:26 -07:00
..
2022-07-21 10:12:26 -07:00
2022-07-19 10:44:31 -06:00
2022-07-06 16:18:44 +02:00
2022-07-19 10:44:31 -06:00
2022-07-19 10:44:31 -06:00
2022-06-01 10:36:01 +10:00
2022-05-27 21:26:55 +02:00
2022-07-19 10:44:31 -06:00
2022-07-19 10:44:31 -06:00
2022-07-19 10:44:31 -06:00

Before creating any new configure files (.conf) read the CONF_FILES_README.md