summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/background/Server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Ice/background/Server.cpp')
-rw-r--r--cpp/test/Ice/background/Server.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/cpp/test/Ice/background/Server.cpp b/cpp/test/Ice/background/Server.cpp
index 89479e32766..6c91886b42b 100644
--- a/cpp/test/Ice/background/Server.cpp
+++ b/cpp/test/Ice/background/Server.cpp
@@ -18,6 +18,13 @@
using namespace std;
+extern "C"
+{
+
+Ice::Plugin* createTestTransport(const Ice::CommunicatorPtr&, const std::string&, const Ice::StringSeq&);
+
+};
+
class LocatorI : public Ice::Locator
{
public:
@@ -148,6 +155,11 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
int
main(int argc, char* argv[])
{
+#ifdef ICE_STATIC_LIBS
+ Ice::registerIceSSL(false);
+ Ice::registerPluginFactory("Test", createTestTransport, false);
+#endif
+
try
{
Ice::InitializationData initData = getTestInitData(argc, argv);