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

fix test hanging due to recent API change (initial value propagation)

parent da85e011
No related branches found
Tags 02.00.02
No related merge requests found
......@@ -266,6 +266,10 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(testTriggerByCS, T, test_types) {
auto myCSVar = pvManagers.first->getProcessArray<T>("/myCSVar");
auto theTrigger = pvManagers.first->getProcessArray<T>("/theTrigger");
// Need to send the trigger once, since ApplicationCore expects all CS variables to be written once by the
// ControlSystemAdapter. We do not use the TestFacility here, so we have to do it ourself.
theTrigger->write();
// single theaded test only, since the receiving process scalar does not support blocking
myCSVar->read(); // read initial value
BOOST_CHECK(myCSVar->accessData(0) == 1);
......
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