Skip to content
Snippets Groups Projects
Commit cd0d8dd7 authored by Jens Georg's avatar Jens Georg
Browse files

Adapt to reverted API change in DoocsServerTestHelper

parent a9933d0e
No related branches found
No related tags found
No related merge requests found
......@@ -14,9 +14,8 @@ static const int ACCESS_RW = 1; // read/write
GlobalFixture() { ChimeraTK::DoocsAdapter::waitUntilInitialised(); } \
\
ReferenceTestApplication referenceTestApplication{framework::master_test_suite().p_name.value}; \
ThreadedDoocsServer server{framework::master_test_suite().p_name.value, \
framework::master_test_suite().p_name.value + ".conf", framework::master_test_suite().argc, \
framework::master_test_suite().argv}; \
ThreadedDoocsServer server{framework::master_test_suite().p_name.value + ".conf", \
framework::master_test_suite().argc, framework::master_test_suite().argv}; \
}; \
\
BOOST_GLOBAL_FIXTURE(GlobalFixture);
......@@ -34,9 +33,8 @@ static const int ACCESS_RW = 1; // read/write
\
static ReferenceTestApplication referenceTestApplication; \
static std::string rpcNo; \
ThreadedDoocsServer server{framework::master_test_suite().p_name.value, \
framework::master_test_suite().p_name.value + ".conf", framework::master_test_suite().argc, \
framework::master_test_suite().argv}; \
ThreadedDoocsServer server{framework::master_test_suite().p_name.value + ".conf", \
framework::master_test_suite().argc, framework::master_test_suite().argv}; \
}; \
\
ReferenceTestApplication GlobalFixture::referenceTestApplication{BOOST_STRINGIZE(BOOST_TEST_MODULE)}; \
......
......@@ -19,6 +19,12 @@ using namespace boost::unit_test;
using namespace boost::unit_test_framework;
using namespace ChimeraTK;
struct InternalTestServer : public ThreadedDoocsServer {
InternalTestServer(const std::string& serverName) : ThreadedDoocsServer({}, 0, nullptr, false) {
_serverName = serverName;
}
};
struct GlobalFixture {
GlobalFixture() {
boost::filesystem::copy_file(framework::master_test_suite().p_name.value + ".template.conf",
......@@ -28,7 +34,7 @@ struct GlobalFixture {
}
ReferenceTestApplication referenceTestApplication{framework::master_test_suite().p_name.value};
ThreadedDoocsServer server{BOOST_STRINGIZE(BOOST_TEST_MODULE), {}, 0, nullptr, false};
InternalTestServer server{framework::master_test_suite().p_name.value};
};
BOOST_GLOBAL_FIXTURE(GlobalFixture);
......
......@@ -19,8 +19,8 @@ struct GlobalFixture {
~GlobalFixture() { referenceTestApplication.releaseManualLoopControl(); }
static ReferenceTestApplication referenceTestApplication;
ThreadedDoocsServer server{BOOST_STRINGIZE(BOOST_TEST_MODULE), BOOST_STRINGIZE(BOOST_TEST_MODULE) ".conf",
framework::master_test_suite().argc, framework::master_test_suite().argv};
ThreadedDoocsServer server{BOOST_STRINGIZE(BOOST_TEST_MODULE) ".conf", framework::master_test_suite().argc,
framework::master_test_suite().argv};
};
ReferenceTestApplication GlobalFixture::referenceTestApplication{BOOST_STRINGIZE(BOOST_TEST_MODULE)};
......
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