pnoltes commented on PR #459:
URL: https://github.com/apache/celix/pull/459#issuecomment-1368123646

   The PR now also has an example of mocking malloc / realloc to test the 
handling of NULL returns for these functions.
   This is more for RFC, because I am not sure if this is the right way to go. 
   
   The setup for the malloc/realloc mock can be found at:
   
https://github.com/apache/celix/pull/459/files#diff-6367d4e53f8f4d23d34254dfe78238621efb02a1a0619354b5ebca109ff6ac10R35-R82
   
   And the usage at:
   
https://github.com/apache/celix/pull/459/files#diff-6367d4e53f8f4d23d34254dfe78238621efb02a1a0619354b5ebca109ff6ac10R227-R240
   
   Note that if this is a approach we like to take more serious, then I except 
that this kind of functionality is added a separate lib/macros or maybe third 
party c mock lib (mocka, cmokery).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@celix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to