#include <future>
#include "Application.h"
#include "ApplicationModule.h"
#include "ScalarAccessor.h"
#include <ChimeraTK/BackendFactory.h>
#include <ChimeraTK/ControlSystemAdapter/ControlSystemPVManager.h>
#include <ChimeraTK/ControlSystemAdapter/DevicePVManager.h>
#include <ChimeraTK/ControlSystemAdapter/PVManager.h>
#include <boost/mpl/list.hpp>
#include <boost/test/included/unit_test.hpp>
#include <boost/thread/barrier.hpp>
Go to the source code of this file.
◆ BOOST_TEST_MODULE
| #define BOOST_TEST_MODULE testControlSystemAccessors |
◆ CHECK_TIMEOUT
| #define CHECK_TIMEOUT |
( |
|
condition, |
|
|
|
maxMilliseconds |
|
) |
| |
Value: { \
std::chrono::steady_clock::time_point t0 = std::chrono::steady_clock::now(); \
while(!(condition)) { \
bool timeout_reached = (std::chrono::steady_clock::now() - t0) > std::chrono::milliseconds(maxMilliseconds); \
BOOST_CHECK(!timeout_reached); \
if(timeout_reached) break; \
usleep(1000); \
} \
}
Definition at line 28 of file testControlSystemAccessors.cc.