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

Add Valgrind plugin #807

Open
wants to merge 1 commit into
base: test/ceedling_0_32_rc
Choose a base branch
from

Conversation

jamestiotio
Copy link

This commit adds the Valgrind plugin to Ceedling. The plugin implementation closely follows the Gcov plugin.

Fixes #277.

@mvandervoord
Copy link
Member

It would be better at this point if this were targeting the prerelease branch that is soon to be released.

@jamestiotio
Copy link
Author

jamestiotio commented Sep 2, 2023

It would be better at this point if this were targeting the prerelease branch that is soon to be released.

@mvandervoord Sure, I have changed the base branch of the pull request to test/ceedling_0_32_rc.

I have also added a simple README file for the Valgrind plugin in the latest version of the commit.

@PasVegan
Copy link

Why is this still not merged ?

@mvandervoord
Copy link
Member

@PasVegan Because it hasn't been reviewed yet.

Have you tried the plugin? How was your experience?

@PasVegan
Copy link

Yes I tried the plugin and it works very nicely, the only thing that I have to say is that even if valgrind reports errors the exit code is still 0 at the end. I think that need to be changed for proper CI use.

@jamestiotio
Copy link
Author

jamestiotio commented Oct 31, 2023

Hi @PasVegan, you can add the following flags to let Valgrind exit on the first error and return a different exit code:

--exit-on-first-error=yes
--error-exitcode=<number>

In a CI context, it makes sense to add said flags. If you feel that those flags should be the default options, I can add them (with the default exit code on error being 1).

@PasVegan
Copy link

Hi, yes I think those flags should be on by default with the default exit code on error being 1 👍🏻

This commit adds the Valgrind plugin to Ceedling. The plugin
implementation closely follows the Gcov plugin.

Signed-off-by: James Raphael Tiovalen <jamestiotio@gmail.com>
@jamestiotio
Copy link
Author

Hi, yes I think those flags should be on by default with the default exit code on error being 1 👍🏻

Done! Added the 2 aforementioned flags in the latest commit (68fe5c3).

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

Successfully merging this pull request may close these issues.

New plugin proposal: Memory Testing
4 participants