-
Notifications
You must be signed in to change notification settings - Fork 0
Add option for suppression file in valgrind memcheck [AP-3695] #185
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
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Adds support for specifying a Valgrind suppression file via CMake, allowing users to pass a --suppressions
flag relative to the repo root when running memcheck.
- Extend
swift_add_valgrind_memcheck
to accept aSUPPRESSIONS_FILE
argument - Append
--suppressions=<path>
to Valgrind options if provided
Comments suppressed due to low confidence (2)
Valgrind.cmake:297
- Consider updating any related README or CMake usage docs to mention the new
SUPPRESSIONS_FILE
option and show an example of how to set it.
set(argSingle LEAK_CHECK SUPPRESSIONS_FILE)
Valgrind.cmake:325
- There are no tests covering the new
SUPPRESSIONS_FILE
behavior; consider adding a CI test or example target that verifies the suppression file is correctly applied.
if (x_SUPPRESSIONS_FILE)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
…grind memcheck [AP-3695] (#185) (#516) Automated PR by Jenkins. If CI has passed successfully, merge away! **cmake** 361035b6 -> 61cdba17 - 61cdba17 : Add option for suppression file in valgrind memcheck [AP-3695] (swift-nav/cmake#185) This pull request was created by https://jenkins.ci.swift-nav.com/job/CI%20Infra/job/submodule-update/20444/. [AP-3695]: https://swift-nav.atlassian.net/browse/AP-3695?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
…grind memcheck [AP-3695] (#185) (#1482) Automated PR by Jenkins. If CI has passed successfully, merge away! **cmake** 361035b6 -> 61cdba17 - 61cdba17 : Add option for suppression file in valgrind memcheck [AP-3695] (swift-nav/cmake#185) This pull request was created by https://jenkins.ci.swift-nav.com/job/CI%20Infra/job/submodule-update/20444/. [AP-3695]: https://swift-nav.atlassian.net/browse/AP-3695?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
Valgrind memcheck supports suppression files. This change allows using our cmake logic to specify a suppression file relative to the repo root.
Tested: https://github.com/swift-nav/starling/pull/9972