Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Add initial implementation of memory leak check #175

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

joaopapereira
Copy link
Contributor

In this commit an initial implementation of the memory leak check functionality is added.

A new constraint to do the check check_memory_leak is now available Also replace all the memory management function with cgreen specific so that we can have some more control over the memory

This patch does not widely add the memory check to all tests.
If we want this to happen we need to call the new assertion directly.

TODO:
Add the assertion to the end of the test suite.
Ensure that the memory cache is cleaned per test
Works for C only at this point

This PR serves as an initial proof of concept of the memory leak implementation and it give us the basis to start adding this memory check to all tests as soon as we finish the todo's

Fixes #152

In this commit an initial implementation of the memory leak check
functionality is added.

A new constraint to do the check `check_memory_leak` is now available
Also replace all the memory management function with cgreen specific
so that we can have some more control over the memory

This patch does not widely add the memory check to all tests.
If we want this to happen we need to call the new assertion directly.

TODO:
Add the assertion to the end of the test suite.
Ensure that the memory cache is cleaned per test
@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 96.067% when pulling 6b77124 on joaopapereira:memory-accounting into 01dce29 on cgreen-devs:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants