diff options
author | Benoit Foucher <benoit@zeroc.com> | 2017-03-14 14:34:00 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2017-03-14 14:34:00 +0100 |
commit | d83b1a9548833642b0c13918880bf16af0697c9d (patch) | |
tree | 192108c34f3e6a16ab9ff740b7737d336cf9b3ba /cpp/test | |
parent | Added new ctors to Ice::CommunicatorHolder (diff) | |
download | ice-d83b1a9548833642b0c13918880bf16af0697c9d.tar.bz2 ice-d83b1a9548833642b0c13918880bf16af0697c9d.tar.xz ice-d83b1a9548833642b0c13918880bf16af0697c9d.zip |
Fixed testing of static builds
Diffstat (limited to 'cpp/test')
124 files changed, 177 insertions, 212 deletions
diff --git a/cpp/test/Glacier2/application/Client.cpp b/cpp/test/Glacier2/application/Client.cpp index cc1ebaa0098..17f30885674 100644 --- a/cpp/test/Glacier2/application/Client.cpp +++ b/cpp/test/Glacier2/application/Client.cpp @@ -24,11 +24,11 @@ using namespace Test; namespace { - + class CallbackReceiverI : public Test::CallbackReceiver { public: - + CallbackReceiverI() : _received(false) { } @@ -39,7 +39,7 @@ public: _received = true; _monitor.notify(); } - + void waitForCallback() { IceUtil::Monitor<IceUtil::Mutex>::Lock lock(_monitor); @@ -49,7 +49,7 @@ public: } _received = false; } - + IceUtil::Monitor<IceUtil::Mutex> _monitor; bool _received; }; @@ -58,24 +58,24 @@ ICE_DEFINE_PTR(CallbackReceiverIPtr, CallbackReceiverI); class Application : public Glacier2::Application { public: - + Application() : _restart(0), _destroyed(false), _receiver(ICE_MAKE_SHARED(CallbackReceiverI)) { } - + virtual Glacier2::SessionPrxPtr createSession() { return ICE_UNCHECKED_CAST(Glacier2::SessionPrx, router()->createSession("userid", "abc123")); } - + virtual int runWithSession(int, char*[]) { test(router()); test(!categoryForClient().empty()); test(objectAdapter()); - + if(_restart == 0) { cout << "testing Glacier2::Application restart... " << flush; @@ -90,14 +90,14 @@ public: restart(); } cout << "ok" << endl; - + cout << "testing server shutdown... " << flush; callback->shutdown(); cout << "ok" << endl; return 0; } - + virtual void sessionDestroyed() { _destroyed = true; @@ -115,16 +115,12 @@ public: int main(int argc, char* argv[]) { -#ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); -#endif - Application app; Ice::InitializationData initData = getTestInitData(argc, argv); initData.properties->setProperty("Ice.Warn.Connections", "0"); initData.properties->setProperty("Ice.Default.Router", "Glacier2/router:" + getTestEndpoint(initData.properties, 10)); int status = app.main(argc, argv, initData); - + initData.properties->setProperty("Ice.Default.Router", ""); Ice::CommunicatorPtr communicator = Ice::initialize(initData); @@ -148,10 +144,10 @@ main(int argc, char* argv[]) { cout << "ok" << endl; } - + test(app._restart == 5); test(app._destroyed); - + communicator->destroy(); return status; } diff --git a/cpp/test/Glacier2/application/Server.cpp b/cpp/test/Glacier2/application/Server.cpp index 514a49e7f9e..d03dd16835d 100644 --- a/cpp/test/Glacier2/application/Server.cpp +++ b/cpp/test/Glacier2/application/Server.cpp @@ -63,10 +63,6 @@ Server::run(int, char**) int main(int argc, char* argv[]) { -#ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); -#endif - Server app; Ice::InitializationData initData = getTestInitData(argc, argv); return app.main(argc, argv, initData); diff --git a/cpp/test/Glacier2/attack/Client.cpp b/cpp/test/Glacier2/attack/Client.cpp index 542d409e5cf..c931257ff8d 100644 --- a/cpp/test/Glacier2/attack/Client.cpp +++ b/cpp/test/Glacier2/attack/Client.cpp @@ -8,7 +8,7 @@ // ********************************************************************** #include <IceUtil/Random.h> -#include <Ice/Application.h> +#include <Ice/Ice.h> #include <Glacier2/Router.h> #include <Backend.h> #include <TestCommon.h> @@ -28,10 +28,6 @@ public: int main(int argc, char* argv[]) { -#ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); -#endif - Ice::InitializationData initData = getTestInitData(argc, argv); // diff --git a/cpp/test/Glacier2/attack/Server.cpp b/cpp/test/Glacier2/attack/Server.cpp index a04171569a4..e500f70ea61 100644 --- a/cpp/test/Glacier2/attack/Server.cpp +++ b/cpp/test/Glacier2/attack/Server.cpp @@ -52,10 +52,6 @@ public: int main(int argc, char* argv[]) { -#ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); -#endif - BackendServer app; Ice::InitializationData initData = getTestInitData(argc, argv); return app.main(argc, argv, initData); diff --git a/cpp/test/Glacier2/dynamicFiltering/Client.cpp b/cpp/test/Glacier2/dynamicFiltering/Client.cpp index 46fcdd929e0..1fdfbd241fe 100644 --- a/cpp/test/Glacier2/dynamicFiltering/Client.cpp +++ b/cpp/test/Glacier2/dynamicFiltering/Client.cpp @@ -7,7 +7,7 @@ // // ********************************************************************** -#include <Ice/Application.h> +#include <Ice/Ice.h> #include <Glacier2/Router.h> #include <Test.h> #include <TestCommon.h> @@ -26,10 +26,6 @@ public: int main(int argc, char* argv[]) { -#ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); -#endif - SessionControlClient app; Ice::InitializationData initData = getTestInitData(argc, argv); diff --git a/cpp/test/Glacier2/dynamicFiltering/Server.cpp b/cpp/test/Glacier2/dynamicFiltering/Server.cpp index 4ee93e73917..ebd947a128b 100644 --- a/cpp/test/Glacier2/dynamicFiltering/Server.cpp +++ b/cpp/test/Glacier2/dynamicFiltering/Server.cpp @@ -122,10 +122,6 @@ public: int main(int argc, char* argv[]) { -#ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); -#endif - SessionControlServer app; Ice::InitializationData initData = getTestInitData(argc, argv); return app.main(argc, argv, initData); diff --git a/cpp/test/Glacier2/override/Client.cpp b/cpp/test/Glacier2/override/Client.cpp index 3aaaf44aa94..5e1c35f35c4 100644 --- a/cpp/test/Glacier2/override/Client.cpp +++ b/cpp/test/Glacier2/override/Client.cpp @@ -27,10 +27,6 @@ public: int main(int argc, char* argv[]) { -#ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); -#endif - // // We must disable connection warnings, because we attempt to ping // the router before session establishment, as well as after diff --git a/cpp/test/Glacier2/override/Server.cpp b/cpp/test/Glacier2/override/Server.cpp index a19d8fb9327..80697377c5b 100644 --- a/cpp/test/Glacier2/override/Server.cpp +++ b/cpp/test/Glacier2/override/Server.cpp @@ -25,10 +25,6 @@ public: int main(int argc, char* argv[]) { -#ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); -#endif - Ice::InitializationData initData = getTestInitData(argc, argv); initData.properties->setProperty("Ice.Warn.Connections", "0"); diff --git a/cpp/test/Glacier2/router/Client.cpp b/cpp/test/Glacier2/router/Client.cpp index 3966be68723..14ee079e71e 100644 --- a/cpp/test/Glacier2/router/Client.cpp +++ b/cpp/test/Glacier2/router/Client.cpp @@ -419,10 +419,6 @@ public: int main(int argc, char* argv[]) { -#ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); -#endif - // // We must disable connection warnings, because we attempt to ping // the router before session establishment, as well as after diff --git a/cpp/test/Glacier2/router/Server.cpp b/cpp/test/Glacier2/router/Server.cpp index 1594d6b6e9d..5f5f436132d 100644 --- a/cpp/test/Glacier2/router/Server.cpp +++ b/cpp/test/Glacier2/router/Server.cpp @@ -25,10 +25,6 @@ public: int main(int argc, char* argv[]) { -#ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); -#endif - Ice::InitializationData initData = getTestInitData(argc, argv); initData.properties->setProperty("Ice.Warn.Connections", "0"); diff --git a/cpp/test/Glacier2/sessionControl/Client.cpp b/cpp/test/Glacier2/sessionControl/Client.cpp index f757ab365b6..c4a43b89574 100644 --- a/cpp/test/Glacier2/sessionControl/Client.cpp +++ b/cpp/test/Glacier2/sessionControl/Client.cpp @@ -7,7 +7,7 @@ // // ********************************************************************** -#include <Ice/Application.h> +#include <Ice/Ice.h> #include <Glacier2/Router.h> #include <Session.h> #include <TestCommon.h> @@ -27,10 +27,6 @@ public: int main(int argc, char* argv[]) { -#ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); -#endif - Ice::InitializationData initData = getTestInitData(argc, argv); // diff --git a/cpp/test/Glacier2/sessionControl/Server.cpp b/cpp/test/Glacier2/sessionControl/Server.cpp index 7f8256f9132..31bddfd2aff 100644 --- a/cpp/test/Glacier2/sessionControl/Server.cpp +++ b/cpp/test/Glacier2/sessionControl/Server.cpp @@ -26,10 +26,6 @@ public: int main(int argc, char* argv[]) { -#ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); -#endif - SessionControlServer app; Ice::InitializationData initData = getTestInitData(argc, argv); return app.main(argc, argv, initData); diff --git a/cpp/test/Glacier2/sessionHelper/Client.cpp b/cpp/test/Glacier2/sessionHelper/Client.cpp index 2856e5aa26c..7fed4f5bc9d 100644 --- a/cpp/test/Glacier2/sessionHelper/Client.cpp +++ b/cpp/test/Glacier2/sessionHelper/Client.cpp @@ -558,10 +558,6 @@ private: int main(int argc, char* argv[]) { -#ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); -#endif - SessionHelperClient c; Ice::InitializationData initData = getTestInitData(argc, argv); return c.main(argc, argv, initData); diff --git a/cpp/test/Glacier2/sessionHelper/Server.cpp b/cpp/test/Glacier2/sessionHelper/Server.cpp index 1fd4b0046b4..e2aef4d481c 100644 --- a/cpp/test/Glacier2/sessionHelper/Server.cpp +++ b/cpp/test/Glacier2/sessionHelper/Server.cpp @@ -69,10 +69,6 @@ SessionHelperServer::run(int, char**) int main(int argc, char* argv[]) { -#ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); -#endif - SessionHelperServer app; Ice::InitializationData initData = getTestInitData(argc, argv); int status = app.main(argc, argv, initData); diff --git a/cpp/test/Glacier2/ssl/Client.cpp b/cpp/test/Glacier2/ssl/Client.cpp index afa14334d9a..338685cf215 100644 --- a/cpp/test/Glacier2/ssl/Client.cpp +++ b/cpp/test/Glacier2/ssl/Client.cpp @@ -7,7 +7,7 @@ // // ********************************************************************** -#include <Ice/Application.h> +#include <Ice/Ice.h> #include <Glacier2/Router.h> #include <TestCommon.h> @@ -25,10 +25,6 @@ public: int main(int argc, char* argv[]) { -#ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); -#endif - // // We must disable connection warnings, because we attempt to ping // the router before session establishment, as well as after diff --git a/cpp/test/Glacier2/ssl/Server.cpp b/cpp/test/Glacier2/ssl/Server.cpp index b2ad016c704..2edd7e3b3c3 100644 --- a/cpp/test/Glacier2/ssl/Server.cpp +++ b/cpp/test/Glacier2/ssl/Server.cpp @@ -162,10 +162,6 @@ public: int main(int argc, char* argv[]) { -#ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); -#endif - SessionServer app; Ice::InitializationData initData = getTestInitData(argc, argv); return app.main(argc, argv, initData); diff --git a/cpp/test/Glacier2/staticFiltering/Client.cpp b/cpp/test/Glacier2/staticFiltering/Client.cpp index 61568d06b97..5100006c5f4 100644 --- a/cpp/test/Glacier2/staticFiltering/Client.cpp +++ b/cpp/test/Glacier2/staticFiltering/Client.cpp @@ -7,7 +7,7 @@ // // ********************************************************************** -#include <Ice/Application.h> +#include <Ice/Ice.h> #include <Glacier2/Router.h> #include <Backend.h> #include <TestCommon.h> @@ -26,10 +26,6 @@ public: int main(int argc, char* argv[]) { -#ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); -#endif - Ice::InitializationData initData = getTestInitData(argc, argv); // diff --git a/cpp/test/Glacier2/staticFiltering/Server.cpp b/cpp/test/Glacier2/staticFiltering/Server.cpp index 2cd46201f5b..7848994c7ae 100644 --- a/cpp/test/Glacier2/staticFiltering/Server.cpp +++ b/cpp/test/Glacier2/staticFiltering/Server.cpp @@ -118,10 +118,6 @@ public: int main(int argc, char* argv[]) { -#ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); -#endif - BackendServer app; return app.main(argc, argv); } diff --git a/cpp/test/Ice/acm/Client.cpp b/cpp/test/Ice/acm/Client.cpp index ef25430adaf..da61340c1a4 100644 --- a/cpp/test/Ice/acm/Client.cpp +++ b/cpp/test/Ice/acm/Client.cpp @@ -26,9 +26,9 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); # if defined(__linux) - Ice::registerIceBT(); + Ice::registerIceBT(false); # endif #endif diff --git a/cpp/test/Ice/acm/Server.cpp b/cpp/test/Ice/acm/Server.cpp index 82378a30f7e..1e1ab2ef7c6 100644 --- a/cpp/test/Ice/acm/Server.cpp +++ b/cpp/test/Ice/acm/Server.cpp @@ -38,7 +38,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try { diff --git a/cpp/test/Ice/adapterDeactivation/Client.cpp b/cpp/test/Ice/adapterDeactivation/Client.cpp index b0402a2aa84..eb9044aa404 100644 --- a/cpp/test/Ice/adapterDeactivation/Client.cpp +++ b/cpp/test/Ice/adapterDeactivation/Client.cpp @@ -31,7 +31,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try diff --git a/cpp/test/Ice/adapterDeactivation/Collocated.cpp b/cpp/test/Ice/adapterDeactivation/Collocated.cpp index 121f8d6bb60..10c4fc3893f 100644 --- a/cpp/test/Ice/adapterDeactivation/Collocated.cpp +++ b/cpp/test/Ice/adapterDeactivation/Collocated.cpp @@ -43,7 +43,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try diff --git a/cpp/test/Ice/adapterDeactivation/Server.cpp b/cpp/test/Ice/adapterDeactivation/Server.cpp index db39a8b8e52..dc2a51ede3e 100644 --- a/cpp/test/Ice/adapterDeactivation/Server.cpp +++ b/cpp/test/Ice/adapterDeactivation/Server.cpp @@ -33,7 +33,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try diff --git a/cpp/test/Ice/admin/Client.cpp b/cpp/test/Ice/admin/Client.cpp index 8bd9e91831e..413989a104e 100644 --- a/cpp/test/Ice/admin/Client.cpp +++ b/cpp/test/Ice/admin/Client.cpp @@ -27,7 +27,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try diff --git a/cpp/test/Ice/admin/Server.cpp b/cpp/test/Ice/admin/Server.cpp index 00f73491b08..c6da44bdfb9 100644 --- a/cpp/test/Ice/admin/Server.cpp +++ b/cpp/test/Ice/admin/Server.cpp @@ -32,7 +32,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try diff --git a/cpp/test/Ice/ami/Client.cpp b/cpp/test/Ice/ami/Client.cpp index d630781d93d..17210914722 100644 --- a/cpp/test/Ice/ami/Client.cpp +++ b/cpp/test/Ice/ami/Client.cpp @@ -27,9 +27,9 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); # if defined(__linux) - Ice::registerIceBT(); + Ice::registerIceBT(false); # endif #endif diff --git a/cpp/test/Ice/ami/Collocated.cpp b/cpp/test/Ice/ami/Collocated.cpp index a1221ac4a61..06aa5bcf897 100644 --- a/cpp/test/Ice/ami/Collocated.cpp +++ b/cpp/test/Ice/ami/Collocated.cpp @@ -43,7 +43,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try diff --git a/cpp/test/Ice/ami/Server.cpp b/cpp/test/Ice/ami/Server.cpp index 0f65ef5a98b..aa72f3babdc 100644 --- a/cpp/test/Ice/ami/Server.cpp +++ b/cpp/test/Ice/ami/Server.cpp @@ -43,7 +43,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try diff --git a/cpp/test/Ice/background/Client.cpp b/cpp/test/Ice/background/Client.cpp index ae7e42a4b17..2be438d8d35 100644 --- a/cpp/test/Ice/background/Client.cpp +++ b/cpp/test/Ice/background/Client.cpp @@ -15,6 +15,13 @@ using namespace std; using namespace Test; +extern "C" +{ + +Ice::Plugin* createTestTransport(const Ice::CommunicatorPtr&, const std::string&, const Ice::StringSeq&); + +}; + int run(int, char**, const Ice::CommunicatorPtr& communicator) { @@ -27,9 +34,13 @@ 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 + int status; Ice::CommunicatorPtr communicator; - try { Ice::InitializationData initData = getTestInitData(argc, argv); diff --git a/cpp/test/Ice/background/Makefile.mk b/cpp/test/Ice/background/Makefile.mk index a28d86160a2..9aeeb6cb9e6 100644 --- a/cpp/test/Ice/background/Makefile.mk +++ b/cpp/test/Ice/background/Makefile.mk @@ -10,8 +10,11 @@ $(test)_libraries := $(test)_TestTransport $(test)_cppflags := -I$(srcdir) -$(test)_client_sources = $(test-client-sources) Configuration.cpp -$(test)_server_sources = $(test-server-sources) Configuration.cpp +$(test)_client_sources = $(test-client-sources) Configuration.cpp +$(test)_client[static]_dependencies := $(test)_TestTransport + +$(test)_server_sources = $(test-server-sources) Configuration.cpp +$(test)_server[static]_dependencies := $(test)_TestTransport $(test)_TestTransport_sources = Test.ice \ Configuration.cpp \ 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); diff --git a/cpp/test/Ice/binding/Client.cpp b/cpp/test/Ice/binding/Client.cpp index 6995b6af5d1..89654fe604f 100644 --- a/cpp/test/Ice/binding/Client.cpp +++ b/cpp/test/Ice/binding/Client.cpp @@ -27,9 +27,9 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); # if defined(__linux) - Ice::registerIceBT(); + Ice::registerIceBT(false); # endif #endif diff --git a/cpp/test/Ice/binding/Server.cpp b/cpp/test/Ice/binding/Server.cpp index b7942ce10b2..75edfceca24 100644 --- a/cpp/test/Ice/binding/Server.cpp +++ b/cpp/test/Ice/binding/Server.cpp @@ -80,7 +80,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try { diff --git a/cpp/test/Ice/checksum/Client.cpp b/cpp/test/Ice/checksum/Client.cpp index 0a9c54dd238..59e98144d54 100644 --- a/cpp/test/Ice/checksum/Client.cpp +++ b/cpp/test/Ice/checksum/Client.cpp @@ -28,7 +28,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try { diff --git a/cpp/test/Ice/checksum/Server.cpp b/cpp/test/Ice/checksum/Server.cpp index 6e762d1748c..8755cfad619 100644 --- a/cpp/test/Ice/checksum/Server.cpp +++ b/cpp/test/Ice/checksum/Server.cpp @@ -31,7 +31,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try { diff --git a/cpp/test/Ice/custom/Client.cpp b/cpp/test/Ice/custom/Client.cpp index 6e8bfb5707d..6f0dcc28692 100644 --- a/cpp/test/Ice/custom/Client.cpp +++ b/cpp/test/Ice/custom/Client.cpp @@ -30,7 +30,7 @@ int main(int argc, char** argv) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif int status; Ice::CommunicatorPtr communicator; diff --git a/cpp/test/Ice/custom/Collocated.cpp b/cpp/test/Ice/custom/Collocated.cpp index 65151fca950..e103ff19a5d 100644 --- a/cpp/test/Ice/custom/Collocated.cpp +++ b/cpp/test/Ice/custom/Collocated.cpp @@ -36,7 +36,7 @@ int main(int argc, char** argv) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif int status; Ice::CommunicatorPtr communicator; diff --git a/cpp/test/Ice/custom/Server.cpp b/cpp/test/Ice/custom/Server.cpp index 1ebad1216b2..f9dee7d284b 100644 --- a/cpp/test/Ice/custom/Server.cpp +++ b/cpp/test/Ice/custom/Server.cpp @@ -37,7 +37,7 @@ int main(int argc, char** argv) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif int status; Ice::CommunicatorPtr communicator; diff --git a/cpp/test/Ice/custom/ServerAMD.cpp b/cpp/test/Ice/custom/ServerAMD.cpp index 0499b283235..1c3b3acc40f 100644 --- a/cpp/test/Ice/custom/ServerAMD.cpp +++ b/cpp/test/Ice/custom/ServerAMD.cpp @@ -37,7 +37,7 @@ int main(int argc, char** argv) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif int status; Ice::CommunicatorPtr communicator; diff --git a/cpp/test/Ice/defaultServant/Client.cpp b/cpp/test/Ice/defaultServant/Client.cpp index 6e92d500d1c..71e377a2d8c 100644 --- a/cpp/test/Ice/defaultServant/Client.cpp +++ b/cpp/test/Ice/defaultServant/Client.cpp @@ -28,7 +28,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try { diff --git a/cpp/test/Ice/dispatcher/Client.cpp b/cpp/test/Ice/dispatcher/Client.cpp index 10b2cbbb42f..41e57e874dc 100644 --- a/cpp/test/Ice/dispatcher/Client.cpp +++ b/cpp/test/Ice/dispatcher/Client.cpp @@ -28,7 +28,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif int status; try diff --git a/cpp/test/Ice/dispatcher/Collocated.cpp b/cpp/test/Ice/dispatcher/Collocated.cpp index 60b53146b20..c24f647be48 100644 --- a/cpp/test/Ice/dispatcher/Collocated.cpp +++ b/cpp/test/Ice/dispatcher/Collocated.cpp @@ -43,7 +43,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif int status; try diff --git a/cpp/test/Ice/dispatcher/Server.cpp b/cpp/test/Ice/dispatcher/Server.cpp index 3fc746fc855..c231b212599 100644 --- a/cpp/test/Ice/dispatcher/Server.cpp +++ b/cpp/test/Ice/dispatcher/Server.cpp @@ -44,7 +44,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif int status; try diff --git a/cpp/test/Ice/enums/Client.cpp b/cpp/test/Ice/enums/Client.cpp index e8eabc3bd7e..f2522289709 100644 --- a/cpp/test/Ice/enums/Client.cpp +++ b/cpp/test/Ice/enums/Client.cpp @@ -29,9 +29,9 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); # if defined(__linux) - Ice::registerIceBT(); + Ice::registerIceBT(false); # endif #endif diff --git a/cpp/test/Ice/enums/Server.cpp b/cpp/test/Ice/enums/Server.cpp index 6bd5fd858ef..cedf846b391 100644 --- a/cpp/test/Ice/enums/Server.cpp +++ b/cpp/test/Ice/enums/Server.cpp @@ -33,7 +33,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try diff --git a/cpp/test/Ice/exceptions/Client.cpp b/cpp/test/Ice/exceptions/Client.cpp index 9b4048b3208..a4bc2be2efd 100644 --- a/cpp/test/Ice/exceptions/Client.cpp +++ b/cpp/test/Ice/exceptions/Client.cpp @@ -29,9 +29,9 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); # if defined(__linux) - Ice::registerIceBT(); + Ice::registerIceBT(false); # endif #endif diff --git a/cpp/test/Ice/exceptions/Collocated.cpp b/cpp/test/Ice/exceptions/Collocated.cpp index 9dcd11a2918..2c1fdbb519e 100644 --- a/cpp/test/Ice/exceptions/Collocated.cpp +++ b/cpp/test/Ice/exceptions/Collocated.cpp @@ -34,7 +34,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try diff --git a/cpp/test/Ice/exceptions/Server.cpp b/cpp/test/Ice/exceptions/Server.cpp index 13331397a38..2f5d9320931 100644 --- a/cpp/test/Ice/exceptions/Server.cpp +++ b/cpp/test/Ice/exceptions/Server.cpp @@ -42,7 +42,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try diff --git a/cpp/test/Ice/exceptions/ServerAMD.cpp b/cpp/test/Ice/exceptions/ServerAMD.cpp index 9310f24f774..5d3bcd80c60 100644 --- a/cpp/test/Ice/exceptions/ServerAMD.cpp +++ b/cpp/test/Ice/exceptions/ServerAMD.cpp @@ -42,7 +42,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try diff --git a/cpp/test/Ice/facets/Client.cpp b/cpp/test/Ice/facets/Client.cpp index 3a8c5e015b4..89d96801260 100644 --- a/cpp/test/Ice/facets/Client.cpp +++ b/cpp/test/Ice/facets/Client.cpp @@ -29,9 +29,9 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); # if defined(__linux) - Ice::registerIceBT(); + Ice::registerIceBT(false); # endif #endif diff --git a/cpp/test/Ice/facets/Collocated.cpp b/cpp/test/Ice/facets/Collocated.cpp index 216a69c7432..bc1adf94cde 100644 --- a/cpp/test/Ice/facets/Collocated.cpp +++ b/cpp/test/Ice/facets/Collocated.cpp @@ -39,7 +39,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try diff --git a/cpp/test/Ice/facets/Server.cpp b/cpp/test/Ice/facets/Server.cpp index 50ddc010d14..6d174b28c52 100644 --- a/cpp/test/Ice/facets/Server.cpp +++ b/cpp/test/Ice/facets/Server.cpp @@ -38,7 +38,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try diff --git a/cpp/test/Ice/faultTolerance/Client.cpp b/cpp/test/Ice/faultTolerance/Client.cpp index 48c6ea9d715..b91d6ce2c64 100644 --- a/cpp/test/Ice/faultTolerance/Client.cpp +++ b/cpp/test/Ice/faultTolerance/Client.cpp @@ -60,7 +60,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try diff --git a/cpp/test/Ice/faultTolerance/Server.cpp b/cpp/test/Ice/faultTolerance/Server.cpp index d38149ffbf7..dd473f41141 100644 --- a/cpp/test/Ice/faultTolerance/Server.cpp +++ b/cpp/test/Ice/faultTolerance/Server.cpp @@ -64,7 +64,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try diff --git a/cpp/test/Ice/gc/Client.cpp b/cpp/test/Ice/gc/Client.cpp index f56880aa350..ff09ff5e1fe 100644 --- a/cpp/test/Ice/gc/Client.cpp +++ b/cpp/test/Ice/gc/Client.cpp @@ -536,7 +536,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif MyApplication app; return app.main(argc, argv); diff --git a/cpp/test/Ice/hash/Client.cpp b/cpp/test/Ice/hash/Client.cpp index 960417bb78b..bb204395f93 100644 --- a/cpp/test/Ice/hash/Client.cpp +++ b/cpp/test/Ice/hash/Client.cpp @@ -24,7 +24,7 @@ DEFINE_TEST("client") int main(int argc, char** argv) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif cout << "testing proxy hash algorithm collisions... " << flush; map<Ice::Int, Ice::ObjectPrxPtr> seenProxy; diff --git a/cpp/test/Ice/hold/Client.cpp b/cpp/test/Ice/hold/Client.cpp index 27581472466..2fbb146ec3e 100644 --- a/cpp/test/Ice/hold/Client.cpp +++ b/cpp/test/Ice/hold/Client.cpp @@ -28,9 +28,9 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); # if defined(__linux) - Ice::registerIceBT(); + Ice::registerIceBT(false); # endif #endif diff --git a/cpp/test/Ice/hold/Server.cpp b/cpp/test/Ice/hold/Server.cpp index f526ef7edf6..b64acaa0b28 100644 --- a/cpp/test/Ice/hold/Server.cpp +++ b/cpp/test/Ice/hold/Server.cpp @@ -52,7 +52,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try { diff --git a/cpp/test/Ice/impl/Server.cpp b/cpp/test/Ice/impl/Server.cpp index 0f43bde0a79..1cfc5f4d4fa 100644 --- a/cpp/test/Ice/impl/Server.cpp +++ b/cpp/test/Ice/impl/Server.cpp @@ -33,7 +33,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try diff --git a/cpp/test/Ice/impl/ServerAMD.cpp b/cpp/test/Ice/impl/ServerAMD.cpp index 72ff725abec..c9e1518cb6c 100644 --- a/cpp/test/Ice/impl/ServerAMD.cpp +++ b/cpp/test/Ice/impl/ServerAMD.cpp @@ -33,7 +33,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try diff --git a/cpp/test/Ice/info/Client.cpp b/cpp/test/Ice/info/Client.cpp index baf6739db98..840b96d0def 100644 --- a/cpp/test/Ice/info/Client.cpp +++ b/cpp/test/Ice/info/Client.cpp @@ -27,7 +27,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try diff --git a/cpp/test/Ice/info/Server.cpp b/cpp/test/Ice/info/Server.cpp index cbcf7cefc45..38f9b5f3a6e 100644 --- a/cpp/test/Ice/info/Server.cpp +++ b/cpp/test/Ice/info/Server.cpp @@ -32,7 +32,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try diff --git a/cpp/test/Ice/inheritance/Client.cpp b/cpp/test/Ice/inheritance/Client.cpp index 1365c178e1d..b91b542333f 100644 --- a/cpp/test/Ice/inheritance/Client.cpp +++ b/cpp/test/Ice/inheritance/Client.cpp @@ -29,9 +29,9 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); # if defined(__linux) - Ice::registerIceBT(); + Ice::registerIceBT(false); # endif #endif diff --git a/cpp/test/Ice/inheritance/Collocated.cpp b/cpp/test/Ice/inheritance/Collocated.cpp index a258fb6b848..13d8d7076c1 100644 --- a/cpp/test/Ice/inheritance/Collocated.cpp +++ b/cpp/test/Ice/inheritance/Collocated.cpp @@ -34,7 +34,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try diff --git a/cpp/test/Ice/inheritance/Server.cpp b/cpp/test/Ice/inheritance/Server.cpp index 2c32f7ead96..b8baedf80ec 100644 --- a/cpp/test/Ice/inheritance/Server.cpp +++ b/cpp/test/Ice/inheritance/Server.cpp @@ -32,7 +32,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try diff --git a/cpp/test/Ice/interceptor/Client.cpp b/cpp/test/Ice/interceptor/Client.cpp index b414c8735b5..0e5577343aa 100644 --- a/cpp/test/Ice/interceptor/Client.cpp +++ b/cpp/test/Ice/interceptor/Client.cpp @@ -93,7 +93,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif #ifndef _WIN32 diff --git a/cpp/test/Ice/invoke/Client.cpp b/cpp/test/Ice/invoke/Client.cpp index a2b5d129fa3..644ff8d17f8 100644 --- a/cpp/test/Ice/invoke/Client.cpp +++ b/cpp/test/Ice/invoke/Client.cpp @@ -32,7 +32,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif int status; diff --git a/cpp/test/Ice/invoke/Server.cpp b/cpp/test/Ice/invoke/Server.cpp index 9f595db3f0c..8ede7fc952c 100644 --- a/cpp/test/Ice/invoke/Server.cpp +++ b/cpp/test/Ice/invoke/Server.cpp @@ -115,7 +115,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif int status; diff --git a/cpp/test/Ice/location/Client.cpp b/cpp/test/Ice/location/Client.cpp index 08af30184c8..ea763b0e6ba 100644 --- a/cpp/test/Ice/location/Client.cpp +++ b/cpp/test/Ice/location/Client.cpp @@ -27,7 +27,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try { diff --git a/cpp/test/Ice/location/Server.cpp b/cpp/test/Ice/location/Server.cpp index 71a471d4a3c..113963498b7 100644 --- a/cpp/test/Ice/location/Server.cpp +++ b/cpp/test/Ice/location/Server.cpp @@ -58,7 +58,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try { diff --git a/cpp/test/Ice/logger/Client1.cpp b/cpp/test/Ice/logger/Client1.cpp index 27626ad22f7..80a25af446b 100644 --- a/cpp/test/Ice/logger/Client1.cpp +++ b/cpp/test/Ice/logger/Client1.cpp @@ -33,7 +33,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif cout << "testing logger encoding with Ice.LogFile... " << flush; diff --git a/cpp/test/Ice/logger/Client2.cpp b/cpp/test/Ice/logger/Client2.cpp index b5fb780436d..6072f6b2032 100644 --- a/cpp/test/Ice/logger/Client2.cpp +++ b/cpp/test/Ice/logger/Client2.cpp @@ -33,7 +33,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif #ifdef _WIN32 diff --git a/cpp/test/Ice/logger/Client3.cpp b/cpp/test/Ice/logger/Client3.cpp index 4985e2ebb30..d78bf03787b 100644 --- a/cpp/test/Ice/logger/Client3.cpp +++ b/cpp/test/Ice/logger/Client3.cpp @@ -32,7 +32,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif #ifdef _WIN32 diff --git a/cpp/test/Ice/logger/Client4.cpp b/cpp/test/Ice/logger/Client4.cpp index d2548bf4cda..f290a9d9cae 100644 --- a/cpp/test/Ice/logger/Client4.cpp +++ b/cpp/test/Ice/logger/Client4.cpp @@ -32,7 +32,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif #ifdef _WIN32 diff --git a/cpp/test/Ice/logger/Client5.cpp b/cpp/test/Ice/logger/Client5.cpp index 01e9a39ec65..0039d04f440 100644 --- a/cpp/test/Ice/logger/Client5.cpp +++ b/cpp/test/Ice/logger/Client5.cpp @@ -37,7 +37,7 @@ public: // We use messages with different sizes to compensate the different line end used in Windows // and Unix. The Win32 message is 126 bytes plus 2 bytes for the Windows line end \r\n and // that makes a total of 128 bytes. For all other platforms the message is 127 bytes plus 1 -// byte for the line end \n and that makes a total of 128 bytes. +// byte for the line end \n and that makes a total of 128 bytes. // #ifdef _WIN32 const string message = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. " @@ -51,7 +51,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif // @@ -76,7 +76,7 @@ main(int argc, char* argv[]) return EXIT_FAILURE; } } - + // // Run Client application configured to generate 1024 bytes, the application is configured // to not archive log files, there must not be any archived log files, and log file must @@ -116,7 +116,7 @@ main(int argc, char* argv[]) return EXIT_FAILURE; } } - + // // Same as above but maximum size is lower than the message size, in this case we should // get the same result as messages are not trucated. @@ -135,7 +135,7 @@ main(int argc, char* argv[]) return EXIT_FAILURE; } } - + // // Run Client application configured to generate 1024 bytes, the application is configured // to archive log files greater than 512 bytes, but the log directory is set to read only diff --git a/cpp/test/Ice/metrics/Client.cpp b/cpp/test/Ice/metrics/Client.cpp index 89cbeeb6ce7..60aa32443b2 100644 --- a/cpp/test/Ice/metrics/Client.cpp +++ b/cpp/test/Ice/metrics/Client.cpp @@ -30,7 +30,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try { diff --git a/cpp/test/Ice/metrics/Collocated.cpp b/cpp/test/Ice/metrics/Collocated.cpp index 4a8418a14fe..b585cacac81 100644 --- a/cpp/test/Ice/metrics/Collocated.cpp +++ b/cpp/test/Ice/metrics/Collocated.cpp @@ -40,7 +40,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try { diff --git a/cpp/test/Ice/metrics/Server.cpp b/cpp/test/Ice/metrics/Server.cpp index 4f012d6ce5e..244aa323373 100644 --- a/cpp/test/Ice/metrics/Server.cpp +++ b/cpp/test/Ice/metrics/Server.cpp @@ -38,7 +38,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try { diff --git a/cpp/test/Ice/metrics/ServerAMD.cpp b/cpp/test/Ice/metrics/ServerAMD.cpp index 50f5555714d..28311907478 100644 --- a/cpp/test/Ice/metrics/ServerAMD.cpp +++ b/cpp/test/Ice/metrics/ServerAMD.cpp @@ -38,7 +38,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try { diff --git a/cpp/test/Ice/networkProxy/Client.cpp b/cpp/test/Ice/networkProxy/Client.cpp index 9fc5cf00793..97a854d2206 100644 --- a/cpp/test/Ice/networkProxy/Client.cpp +++ b/cpp/test/Ice/networkProxy/Client.cpp @@ -27,7 +27,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try diff --git a/cpp/test/Ice/networkProxy/Server.cpp b/cpp/test/Ice/networkProxy/Server.cpp index f99dc017311..5e11804309b 100644 --- a/cpp/test/Ice/networkProxy/Server.cpp +++ b/cpp/test/Ice/networkProxy/Server.cpp @@ -48,7 +48,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try diff --git a/cpp/test/Ice/objects/Client.cpp b/cpp/test/Ice/objects/Client.cpp index a7a54a7e8c1..5c44d8567aa 100644 --- a/cpp/test/Ice/objects/Client.cpp +++ b/cpp/test/Ice/objects/Client.cpp @@ -153,9 +153,9 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); # if defined(__linux) - Ice::registerIceBT(); + Ice::registerIceBT(false); # endif #endif diff --git a/cpp/test/Ice/objects/Collocated.cpp b/cpp/test/Ice/objects/Collocated.cpp index 402de33fa4e..60330b7061b 100644 --- a/cpp/test/Ice/objects/Collocated.cpp +++ b/cpp/test/Ice/objects/Collocated.cpp @@ -148,7 +148,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try diff --git a/cpp/test/Ice/objects/Server.cpp b/cpp/test/Ice/objects/Server.cpp index ed2edfe109a..991233bfa0a 100644 --- a/cpp/test/Ice/objects/Server.cpp +++ b/cpp/test/Ice/objects/Server.cpp @@ -82,7 +82,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try diff --git a/cpp/test/Ice/operations/Client.cpp b/cpp/test/Ice/operations/Client.cpp index 45f6d69a221..39be98045c0 100644 --- a/cpp/test/Ice/operations/Client.cpp +++ b/cpp/test/Ice/operations/Client.cpp @@ -43,9 +43,9 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); # if defined(__linux) - Ice::registerIceBT(); + Ice::registerIceBT(false); # endif #endif diff --git a/cpp/test/Ice/operations/Collocated.cpp b/cpp/test/Ice/operations/Collocated.cpp index b75e96b45ee..8d644244088 100644 --- a/cpp/test/Ice/operations/Collocated.cpp +++ b/cpp/test/Ice/operations/Collocated.cpp @@ -36,7 +36,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try diff --git a/cpp/test/Ice/operations/Server.cpp b/cpp/test/Ice/operations/Server.cpp index 26a7517cab7..d65d9a15ce9 100644 --- a/cpp/test/Ice/operations/Server.cpp +++ b/cpp/test/Ice/operations/Server.cpp @@ -32,7 +32,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try diff --git a/cpp/test/Ice/operations/ServerAMD.cpp b/cpp/test/Ice/operations/ServerAMD.cpp index a3687db77be..a1152339aca 100644 --- a/cpp/test/Ice/operations/ServerAMD.cpp +++ b/cpp/test/Ice/operations/ServerAMD.cpp @@ -32,7 +32,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try diff --git a/cpp/test/Ice/optional/Client.cpp b/cpp/test/Ice/optional/Client.cpp index e1984b420c4..5167cf94444 100644 --- a/cpp/test/Ice/optional/Client.cpp +++ b/cpp/test/Ice/optional/Client.cpp @@ -29,9 +29,9 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); # if defined(__linux) - Ice::registerIceBT(); + Ice::registerIceBT(false); # endif #endif diff --git a/cpp/test/Ice/optional/Server.cpp b/cpp/test/Ice/optional/Server.cpp index 0be0f7fb22f..3c8920536da 100644 --- a/cpp/test/Ice/optional/Server.cpp +++ b/cpp/test/Ice/optional/Server.cpp @@ -32,7 +32,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif int status; diff --git a/cpp/test/Ice/optional/ServerAMD.cpp b/cpp/test/Ice/optional/ServerAMD.cpp index edfa00128d9..00629ba7079 100644 --- a/cpp/test/Ice/optional/ServerAMD.cpp +++ b/cpp/test/Ice/optional/ServerAMD.cpp @@ -31,7 +31,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif int status; diff --git a/cpp/test/Ice/properties/Client.cpp b/cpp/test/Ice/properties/Client.cpp index 97027f59d41..3b8f6c5d844 100644 --- a/cpp/test/Ice/properties/Client.cpp +++ b/cpp/test/Ice/properties/Client.cpp @@ -40,7 +40,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif ifstream in("./config/configPath"); diff --git a/cpp/test/Ice/proxy/Client.cpp b/cpp/test/Ice/proxy/Client.cpp index 673fea82cd0..9d58f1c3279 100644 --- a/cpp/test/Ice/proxy/Client.cpp +++ b/cpp/test/Ice/proxy/Client.cpp @@ -30,9 +30,9 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); # if defined(__linux) - Ice::registerIceBT(); + Ice::registerIceBT(false); # endif #endif diff --git a/cpp/test/Ice/proxy/Collocated.cpp b/cpp/test/Ice/proxy/Collocated.cpp index d39648f73d1..bba4295d3cb 100644 --- a/cpp/test/Ice/proxy/Collocated.cpp +++ b/cpp/test/Ice/proxy/Collocated.cpp @@ -33,7 +33,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try diff --git a/cpp/test/Ice/proxy/Server.cpp b/cpp/test/Ice/proxy/Server.cpp index d84ca1400d5..bbf40844c93 100644 --- a/cpp/test/Ice/proxy/Server.cpp +++ b/cpp/test/Ice/proxy/Server.cpp @@ -31,7 +31,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try diff --git a/cpp/test/Ice/proxy/ServerAMD.cpp b/cpp/test/Ice/proxy/ServerAMD.cpp index f2c4b68a0f6..78cff3f0e18 100644 --- a/cpp/test/Ice/proxy/ServerAMD.cpp +++ b/cpp/test/Ice/proxy/ServerAMD.cpp @@ -31,7 +31,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try diff --git a/cpp/test/Ice/retry/Client.cpp b/cpp/test/Ice/retry/Client.cpp index 0c62a4efa9f..4383b163129 100644 --- a/cpp/test/Ice/retry/Client.cpp +++ b/cpp/test/Ice/retry/Client.cpp @@ -30,7 +30,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try { diff --git a/cpp/test/Ice/retry/Collocated.cpp b/cpp/test/Ice/retry/Collocated.cpp index 9a94472a399..29cd50829f6 100644 --- a/cpp/test/Ice/retry/Collocated.cpp +++ b/cpp/test/Ice/retry/Collocated.cpp @@ -42,7 +42,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try { diff --git a/cpp/test/Ice/retry/Server.cpp b/cpp/test/Ice/retry/Server.cpp index 870ccd4d460..313756bf338 100644 --- a/cpp/test/Ice/retry/Server.cpp +++ b/cpp/test/Ice/retry/Server.cpp @@ -31,7 +31,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif int status = EXIT_FAILURE; try diff --git a/cpp/test/Ice/servantLocator/Client.cpp b/cpp/test/Ice/servantLocator/Client.cpp index 3a0b3d3e0cf..7a124be08ba 100644 --- a/cpp/test/Ice/servantLocator/Client.cpp +++ b/cpp/test/Ice/servantLocator/Client.cpp @@ -29,9 +29,9 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); # if defined(__linux) - Ice::registerIceBT(); + Ice::registerIceBT(false); # endif #endif diff --git a/cpp/test/Ice/servantLocator/Collocated.cpp b/cpp/test/Ice/servantLocator/Collocated.cpp index cad0a52b5c7..1b2057cebf3 100644 --- a/cpp/test/Ice/servantLocator/Collocated.cpp +++ b/cpp/test/Ice/servantLocator/Collocated.cpp @@ -109,7 +109,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try { diff --git a/cpp/test/Ice/servantLocator/Server.cpp b/cpp/test/Ice/servantLocator/Server.cpp index a9609a897ee..113159d83fb 100644 --- a/cpp/test/Ice/servantLocator/Server.cpp +++ b/cpp/test/Ice/servantLocator/Server.cpp @@ -109,7 +109,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try { diff --git a/cpp/test/Ice/servantLocator/ServerAMD.cpp b/cpp/test/Ice/servantLocator/ServerAMD.cpp index 08e842d665e..5e1730395d5 100644 --- a/cpp/test/Ice/servantLocator/ServerAMD.cpp +++ b/cpp/test/Ice/servantLocator/ServerAMD.cpp @@ -108,7 +108,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try { diff --git a/cpp/test/Ice/services/Client.cpp b/cpp/test/Ice/services/Client.cpp index a7b7e56ecd1..c65f2082994 100644 --- a/cpp/test/Ice/services/Client.cpp +++ b/cpp/test/Ice/services/Client.cpp @@ -28,7 +28,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try diff --git a/cpp/test/Ice/slicing/exceptions/Client.cpp b/cpp/test/Ice/slicing/exceptions/Client.cpp index dd78fe2e693..c83c4f179d3 100644 --- a/cpp/test/Ice/slicing/exceptions/Client.cpp +++ b/cpp/test/Ice/slicing/exceptions/Client.cpp @@ -29,9 +29,9 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); # if defined(__linux) - Ice::registerIceBT(); + Ice::registerIceBT(false); # endif #endif diff --git a/cpp/test/Ice/slicing/exceptions/Server.cpp b/cpp/test/Ice/slicing/exceptions/Server.cpp index c0febb30086..27e18bbccd0 100644 --- a/cpp/test/Ice/slicing/exceptions/Server.cpp +++ b/cpp/test/Ice/slicing/exceptions/Server.cpp @@ -33,7 +33,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try { diff --git a/cpp/test/Ice/slicing/exceptions/ServerAMD.cpp b/cpp/test/Ice/slicing/exceptions/ServerAMD.cpp index 8f96b8a6e95..671a165298f 100644 --- a/cpp/test/Ice/slicing/exceptions/ServerAMD.cpp +++ b/cpp/test/Ice/slicing/exceptions/ServerAMD.cpp @@ -33,7 +33,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try { diff --git a/cpp/test/Ice/slicing/objects/Client.cpp b/cpp/test/Ice/slicing/objects/Client.cpp index 7bc94066709..010bc283d07 100644 --- a/cpp/test/Ice/slicing/objects/Client.cpp +++ b/cpp/test/Ice/slicing/objects/Client.cpp @@ -29,9 +29,9 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); # if defined(__linux) - Ice::registerIceBT(); + Ice::registerIceBT(false); # endif #endif diff --git a/cpp/test/Ice/slicing/objects/Server.cpp b/cpp/test/Ice/slicing/objects/Server.cpp index 0d4ee04fb59..5e40db4a4d5 100644 --- a/cpp/test/Ice/slicing/objects/Server.cpp +++ b/cpp/test/Ice/slicing/objects/Server.cpp @@ -34,7 +34,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try diff --git a/cpp/test/Ice/slicing/objects/ServerAMD.cpp b/cpp/test/Ice/slicing/objects/ServerAMD.cpp index 67360690d50..3a23352331f 100644 --- a/cpp/test/Ice/slicing/objects/ServerAMD.cpp +++ b/cpp/test/Ice/slicing/objects/ServerAMD.cpp @@ -34,7 +34,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try diff --git a/cpp/test/Ice/stream/Client.cpp b/cpp/test/Ice/stream/Client.cpp index 3872d1858c9..2d2b0cdce88 100644 --- a/cpp/test/Ice/stream/Client.cpp +++ b/cpp/test/Ice/stream/Client.cpp @@ -1298,7 +1298,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif int status; diff --git a/cpp/test/Ice/stringConverter/Client.cpp b/cpp/test/Ice/stringConverter/Client.cpp index 10bc539c28b..124120a97bc 100644 --- a/cpp/test/Ice/stringConverter/Client.cpp +++ b/cpp/test/Ice/stringConverter/Client.cpp @@ -23,7 +23,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); Ice::registerIceStringConverter(); #endif diff --git a/cpp/test/Ice/stringConverter/Server.cpp b/cpp/test/Ice/stringConverter/Server.cpp index 849848c95c1..59681ba73bb 100644 --- a/cpp/test/Ice/stringConverter/Server.cpp +++ b/cpp/test/Ice/stringConverter/Server.cpp @@ -57,7 +57,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif int status; diff --git a/cpp/test/Ice/threadPoolPriority/Client.cpp b/cpp/test/Ice/threadPoolPriority/Client.cpp index b4877910eaf..26d2734a716 100644 --- a/cpp/test/Ice/threadPoolPriority/Client.cpp +++ b/cpp/test/Ice/threadPoolPriority/Client.cpp @@ -28,7 +28,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif int status; diff --git a/cpp/test/Ice/threadPoolPriority/Server.cpp b/cpp/test/Ice/threadPoolPriority/Server.cpp index d56b04b567e..1f6efb8a1aa 100644 --- a/cpp/test/Ice/threadPoolPriority/Server.cpp +++ b/cpp/test/Ice/threadPoolPriority/Server.cpp @@ -59,7 +59,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif int status; diff --git a/cpp/test/Ice/threadPoolPriority/ServerCustomThreadPool.cpp b/cpp/test/Ice/threadPoolPriority/ServerCustomThreadPool.cpp index 2e20f3bf39f..d23f6e5a2da 100644 --- a/cpp/test/Ice/threadPoolPriority/ServerCustomThreadPool.cpp +++ b/cpp/test/Ice/threadPoolPriority/ServerCustomThreadPool.cpp @@ -63,7 +63,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif int status; diff --git a/cpp/test/Ice/timeout/Client.cpp b/cpp/test/Ice/timeout/Client.cpp index ebc43b5874f..fa04fa82273 100644 --- a/cpp/test/Ice/timeout/Client.cpp +++ b/cpp/test/Ice/timeout/Client.cpp @@ -29,7 +29,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try diff --git a/cpp/test/Ice/timeout/Server.cpp b/cpp/test/Ice/timeout/Server.cpp index 1322e6c175d..0ba881f58de 100644 --- a/cpp/test/Ice/timeout/Server.cpp +++ b/cpp/test/Ice/timeout/Server.cpp @@ -33,7 +33,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try diff --git a/cpp/test/Ice/udp/Client.cpp b/cpp/test/Ice/udp/Client.cpp index f9e40d032d8..c45a2678814 100644 --- a/cpp/test/Ice/udp/Client.cpp +++ b/cpp/test/Ice/udp/Client.cpp @@ -36,7 +36,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try diff --git a/cpp/test/Ice/udp/Server.cpp b/cpp/test/Ice/udp/Server.cpp index 8410b75e686..29b108f60c3 100644 --- a/cpp/test/Ice/udp/Server.cpp +++ b/cpp/test/Ice/udp/Server.cpp @@ -63,7 +63,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif try diff --git a/cpp/test/IceGrid/simple/AllTests.cpp b/cpp/test/IceGrid/simple/AllTests.cpp index fdfbf76ca7a..29f1e84974d 100644 --- a/cpp/test/IceGrid/simple/AllTests.cpp +++ b/cpp/test/IceGrid/simple/AllTests.cpp @@ -100,8 +100,12 @@ allTests(const Ice::CommunicatorPtr& communicator) // handles failure to find a locator. Also test // Ice::registerIceLocatorDiscovery() // +#ifndef ICE_STATIC_LIBS Ice::registerIceLocatorDiscovery(); initData.properties->setProperty("Ice.Plugin.IceLocatorDiscovery", ""); +#else + initData.properties->setProperty("Ice.Plugin.IceLocatorDiscovery", "1"); +#endif initData.properties->setProperty("IceLocatorDiscovery.InstanceName", "unknown"); initData.properties->setProperty("IceLocatorDiscovery.RetryCount", "1"); initData.properties->setProperty("IceLocatorDiscovery.Timeout", "100"); diff --git a/cpp/test/IceGrid/simple/Client.cpp b/cpp/test/IceGrid/simple/Client.cpp index ada84343ff1..3b31fe83612 100644 --- a/cpp/test/IceGrid/simple/Client.cpp +++ b/cpp/test/IceGrid/simple/Client.cpp @@ -46,6 +46,10 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) int main(int argc, char* argv[]) { +#ifdef ICE_STATIC_LIBS + Ice::registerIceSSL(false); + Ice::registerIceLocatorDiscovery(false); +#endif int status; Ice::CommunicatorPtr communicator; diff --git a/cpp/test/IceGrid/simple/Server.cpp b/cpp/test/IceGrid/simple/Server.cpp index da146eac0c1..2eeeac34ef6 100644 --- a/cpp/test/IceGrid/simple/Server.cpp +++ b/cpp/test/IceGrid/simple/Server.cpp @@ -48,6 +48,9 @@ Server::run(int argc, char* argv[]) int main(int argc, char* argv[]) { +#ifdef ICE_STATIC_LIBS + Ice::registerIceSSL(false); +#endif Server app; int rc = app.main(argc, argv); return rc; diff --git a/cpp/test/IceSSL/configuration/Server.cpp b/cpp/test/IceSSL/configuration/Server.cpp index 1de22640be0..d5d37876202 100644 --- a/cpp/test/IceSSL/configuration/Server.cpp +++ b/cpp/test/IceSSL/configuration/Server.cpp @@ -44,7 +44,7 @@ int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(); + Ice::registerIceSSL(false); #endif int status; |