Skip to content

Conversation

@cjwaldeck
Copy link
Contributor

@cjwaldeck cjwaldeck commented Nov 12, 2020

When libscu-c is compiled with valgrind support, add ability to count
leaked memory based on SCU_VALGRIND_LEAK_LEVEL set using memcheck's
own definitions:
[0 - none, 1 - leaked, 2 - dubious]

Default is set to 1.

VALGRIND_DO_QUICK_LEAK_CHECK is used as it corresponds to
'--leak-check=summary'. Since we are not interested in the specifics
of where the leaks are this should suffice.

Fail test cases where leaks of the set level are present.

@cjwaldeck cjwaldeck marked this pull request as draft November 12, 2020 17:11
@cjwaldeck cjwaldeck marked this pull request as ready for review November 12, 2020 19:55
When libscu-c is compiled with valgrind support, add ability to count
leaked memory based on SCU_VALGRIND_LEAK_LEVEL set using memcheck's
own definitions:
    [0 - none, 1 - leaked, 2 - dubious]

Default is set to 1 - leaked.

VALGRIND_DO_QUICK_LEAK_CHECK is used as it corresponds to
'--leak-check=summary'. Since we are not interested in the specifics
of where the leaks are this should suffice.

Fail test cases where leaks of the set level are present.
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.

1 participant