From 8a9b54000a61158fe9b0bb0243ade412b95675a0 Mon Sep 17 00:00:00 2001 From: Martin Hierholzer <martin.hierholzer@desy.de> Date: Mon, 28 Jan 2019 16:34:04 +0100 Subject: [PATCH] fixed a test which was running writeAll() etc. on ModuleGroups (which is illegal) --- tests/executables_src/testConnectTo.cc | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/tests/executables_src/testConnectTo.cc b/tests/executables_src/testConnectTo.cc index e4c63543..3f1013ea 100644 --- a/tests/executables_src/testConnectTo.cc +++ b/tests/executables_src/testConnectTo.cc @@ -141,10 +141,14 @@ BOOST_AUTO_TEST_CASE( testConnectTo ) { app.second.secondModule.myVec[i] = 6+i; } - app.first.writeAll(); - app.second.writeAll(); - app.first.readAllLatest(); - app.second.readAllLatest(); + app.first.testModule.writeAll(); + app.first.secondModule.writeAll(); + app.second.testModule.writeAll(); + app.second.secondModule.writeAll(); + app.first.testModule.readAllLatest(); + app.first.secondModule.readAllLatest(); + app.second.testModule.readAllLatest(); + app.second.secondModule.readAllLatest(); BOOST_CHECK_EQUAL( (int) app.first.testModule.varGroup.varA, 1 ); BOOST_CHECK_EQUAL( (int) app.first.testModule.varGroup.varB, 2 ); @@ -181,10 +185,14 @@ BOOST_AUTO_TEST_CASE( testConnectTwice ) { app.second.secondModule.myVec[i] = 6+i; } - app.first.writeAll(); - app.second.writeAll(); - app.first.readAllLatest(); - app.second.readAllLatest(); + app.first.testModule.writeAll(); + app.first.secondModule.writeAll(); + app.second.testModule.writeAll(); + app.second.secondModule.writeAll(); + app.first.testModule.readAllLatest(); + app.first.secondModule.readAllLatest(); + app.second.testModule.readAllLatest(); + app.second.secondModule.readAllLatest(); BOOST_CHECK_EQUAL( (int) app.first.testModule.varGroup.varA, 1 ); BOOST_CHECK_EQUAL( (int) app.first.testModule.varGroup.varB, 2 ); -- GitLab