It closes the VISA resource manager when the server is reset.
It does this by registering a fake session name (that really should be internal-only) that cleans up the static variable as well as closing the session.
But it's lightweight enough that we don't need to worry about closing it in normal I/O session usage.
Why should this Pull Request be merged?
The server being reset should clean up as much as possible.
What testing has been done?
Added visa_resource_manager_tests
Instantiating OpenRequest, OpenResponse etc. had the side effect of requiring many more .cpp files to be added to the integration test executable. Otherwise I got unresolved link errors.
What does this Pull Request accomplish?
It closes the VISA resource manager when the server is reset.
Why should this Pull Request be merged?
The server being reset should clean up as much as possible.
What testing has been done?
Added
visa_resource_manager_tests
OpenRequest
,OpenResponse
etc. had the side effect of requiring many more .cpp files to be added to the integration test executable. Otherwise I got unresolved link errors.