Skip to content
Snippets Groups Projects
Commit d2c6973f authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

allow using the TestFacility without the testable mode, which can be useful...

allow using the TestFacility without the testable mode, which can be useful for some tests of the framework itself
parent e0fadd3d
No related branches found
No related tags found
No related merge requests found
......@@ -26,11 +26,11 @@ namespace ChimeraTK {
* the instance of the TestFacility must not be created before the application
* (i.e. usually not before the main() routine). The application will
* automatically be put into the testable mode and initialised. */
TestFacility() {
explicit TestFacility(bool enableTestableMode = true) {
auto pvManagers = createPVManager();
pvManager = pvManagers.first;
Application::getInstance().setPVManager(pvManagers.second);
Application::getInstance().enableTestableMode();
if(enableTestableMode) Application::getInstance().enableTestableMode();
Application::getInstance().initialise();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment