Skip to content

WIP: travis: fail on memory leaks#4416

Closed
ethomson wants to merge 1 commit into
masterfrom
ethomson/fail_on_leaks
Closed

WIP: travis: fail on memory leaks#4416
ethomson wants to merge 1 commit into
masterfrom
ethomson/fail_on_leaks

Conversation

@ethomson

Copy link
Copy Markdown
Member

Pass --error-exitcode=125 to valgrind so that it will exit with a non-zero exit code when it detects a memory leak. Use an exit code of 125 to stay safely above any clar errors and safely below any shell errors.

Note: I suspect that there are some tests that we'll need to either exclude from valgrind's examination, or perhaps not run at all.

Pass `--error-exitcode=125` to valgrind so that it will exit with a
non-zero exit code when it detects a memory leak.  Use an exit code
of `125` to stay safely above any clar errors and safely below any
shell errors.
@pks-t

pks-t commented Nov 20, 2017

Copy link
Copy Markdown
Member

We'll have to migrate the Valgrind execution out of after_success. Quoting Travis' documentation:

The exit code of after_success, after_failure, after_script and subsequent stages do not affect the build result. However, if one of these stages times out, the build is marked as a failure.

@tiennou tiennou mentioned this pull request Feb 28, 2018
@pks-t

pks-t commented May 9, 2018

Copy link
Copy Markdown
Member

I'm closing this in favour of #4558

@pks-t pks-t closed this May 9, 2018
@ethomson ethomson deleted the ethomson/fail_on_leaks branch January 9, 2019 10:18
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.

2 participants