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 test for memory_maps() which loads a library by path #1041

Closed
giampaolo opened this issue Apr 30, 2017 · 2 comments
Closed

Add test for memory_maps() which loads a library by path #1041

giampaolo opened this issue Apr 30, 2017 · 2 comments
Labels

Comments

@giampaolo
Copy link
Owner

giampaolo commented Apr 30, 2017

Perhaps this is a bit tricky. Anyway, Process.memory_maps() lists the .so libraries loaded by the process. It would be nice to add a test that:

  • copies an existent loaded .so library somewhere (another path)
  • load the copied library with ctypes
  • call memory_maps() and make sure the new loaded library appears in the list

This would pave the way for testing how memory_maps behave with unicode paths (see: #1040).

Some refs:

@giampaolo
Copy link
Owner Author

@himanshub16 maybe this is something you want to try?

@giampaolo
Copy link
Owner Author

Actually nevermind. It's easier than I thought.

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

No branches or pull requests

1 participant