8000 DEV: Add basic valgrind testing support to runtest.py by seberg · Pull Request #12718 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

DEV: Add basic valgrind testing support to runtest.py #12718

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

Closed
wants to merge 1 commit into from

Conversation

seberg
Copy link
Member
@seberg seberg commented Jan 10, 2019

This is all a big hack probably. But thought I would open anyway just in case someone was interested, so feel free to just close it, I might myself.

It does work (although i did not test all paths). If available it runs with https://github.com/seberg/pytest-valgrind which may be nice in many ways, but is also alpha and may have some small issues.

Basically adds --valgrind with some defaults to runtest.py. It detects the option, and then calls itself again inside valgrind. If available it uses the pytest module I put up, although that currently swallows errors which occur already at import time.

@seberg
Copy link
Member Author
seberg commented Jan 11, 2019

Not surprisingly this turns out to be pretty useless. First it is just too slow to check for memory leaks often (maybe nice to narrow down, but that is about it), and it also appears to be not super reliable.

EDIT: That said, maybe if someone wants to do checks over a similar test suit (or numpy) without memchecks or to narrow down leaks. Something similar might be helpful. I just do not think it is helpful generally enough. (Leveraging sanitizers may also be something for the future.)

@seberg seberg closed this Jan 11, 2019
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
0