C TAP Harness 4.4

The primary change in this release is to add a new function to the C TAP library: test_cleanup_register_with_data. This lets one register a cleanup function for a test and pass in a void * that is passed to the cleanup function. This should have been the original API, and I thought about just changing test_cleanup_register and its callback to take another argument, but I erred on the side of backwards compatibility.

Thanks to Marc Dionne for the patch.

This release also improves some test machinery imported from rra-c-util (new release forthcoming) and fixes error checking for malloc failure in the bstrndup function. (cppcheck found that bug; I really like that static analyzer, particularly since it's extremely easy to use.)

You can get the latest release from the C TAP Harness distribution page.

Posted: 2018-12-25 19:56 — Why no comments?

Last spun 2022-02-06 from thread modified 2018-12-26