blob: 13febe077b6a06832c364823cdf749d8e3746f19 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#define BOOST_TEST_MODULE TestIceBoxInterface
#include <boost/test/unit_test.hpp>
#include <dlfcn.h>
#include <icetrayService.h>
BOOST_AUTO_TEST_CASE( IceBoxInterface )
{
typedef IceTray::Service *(* SetupFunction)(Ice::CommunicatorPtr);
void * i = dlsym(NULL, "createIceTrayService");
BOOST_REQUIRE(i);
auto sf = (SetupFunction)i;
BOOST_REQUIRE(sf);
auto service = sf(nullptr);
BOOST_REQUIRE(service);
delete service;
}
|