- changed status to resolved
Wrap malloc/realloc/free calls in something that can be modified for tests
Issue #20
resolved
Right now, none of the unable to allocate error handling code is tested because it is hard to get malloc to fail predictably (or at all). Wrap all these calls in our own API that can return zero when tests require it.
This is related to Issue #17
Comments (1)
-
reporter - Log in to comment
This has now been resolved by the testio.c functionality. It remains to incorporate this into testing for the whole project, but there is now a simple method to override memory management syscalls.