From b0bc915ba0df62edb6d63eb40b41d4dba2968b3a Mon Sep 17 00:00:00 2001 From: Bernard Normier Date: Thu, 25 Aug 2016 12:15:27 -0400 Subject: New test for dynamic_cast across shared libraries --- cpp/test/Ice/library/Client.cpp | 43 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 cpp/test/Ice/library/Client.cpp (limited to 'cpp/test/Ice/library/Client.cpp') diff --git a/cpp/test/Ice/library/Client.cpp b/cpp/test/Ice/library/Client.cpp new file mode 100644 index 00000000000..bc8371e95a2 --- /dev/null +++ b/cpp/test/Ice/library/Client.cpp @@ -0,0 +1,43 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2016 ZeroC, Inc. All rights reserved. +// +// This copy of Ice is licensed to you under the terms described in the +// ICE_LICENSE file included in this distribution. +// +// ********************************************************************** + +#include +#include + +ICE_DECLSPEC_IMPORT void +allTests(const Ice::ObjectAdapterPtr&); + +#if defined(_MSC_VER) +# pragma comment(lib, ICE_LIBNAME("alltests")) +#endif + +DEFINE_TEST("client") + +using namespace std; + +int +main(int argc, char* argv[]) +{ + try + { + Ice::CommunicatorHolder ich = Ice::initialize(argc, argv); + + // Collocated-only OA + Ice::ObjectAdapterPtr oa = ich->createObjectAdapter(""); + + oa->activate(); + allTests(oa); + } + catch(const Ice::Exception& ex) + { + cerr << ex << endl; + return EXIT_FAILURE; + } + return EXIT_SUCCESS; +} -- cgit v1.2.3