diff --git a/include/TestFacility.h b/include/TestFacility.h index 9d795e97d438d58b6b9221a3248678a7c8219d99..bc0ad27020ef76b8b56018f21b33f0d671efec65 100644 --- a/include/TestFacility.h +++ b/include/TestFacility.h @@ -66,9 +66,11 @@ namespace ChimeraTK { } Application::testableModeLock("waitDevicesToOpen"); // receive all initial values for the control system variables - for(auto& pv : pvManager->getAllProcessVariables()) { - if(!pv->isReadable()) continue; - pv->readNonBlocking(); + if(Application::getInstance().isTestableModeEnabled()) { + for(auto& pv : pvManager->getAllProcessVariables()) { + if(!pv->isReadable()) continue; + pv->readNonBlocking(); + } } }