Skip to content
This repository has been archived by the owner on Jul 17, 2019. It is now read-only.

Ability to deinitialize googlemock #212

Open
TheComet opened this issue Nov 6, 2017 · 0 comments
Open

Ability to deinitialize googlemock #212

TheComet opened this issue Nov 6, 2017 · 0 comments

Comments

@TheComet
Copy link

TheComet commented Nov 6, 2017

There doesn't seem to be a way to clean up all registered tests explicitly. In my application I am loading shared libraries (plugins) that each have their own set of unit tests. During testing, the main application will load a plugin, run its tests, and unload the plugin after the tests have completed, and continue to the next plugin.

The problem I'm having is that once a plugin is loaded and has registered its unit tests with googlemock, there is no way to remove these tests ever. Unloading the plugin creates dangling pointers and crashes the application at a later point.

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

No branches or pull requests

1 participant