summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/adapterDeactivation/AllTests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Ice/adapterDeactivation/AllTests.cpp')
-rw-r--r--cpp/test/Ice/adapterDeactivation/AllTests.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/cpp/test/Ice/adapterDeactivation/AllTests.cpp b/cpp/test/Ice/adapterDeactivation/AllTests.cpp
index 8186540cb30..c1661d22975 100644
--- a/cpp/test/Ice/adapterDeactivation/AllTests.cpp
+++ b/cpp/test/Ice/adapterDeactivation/AllTests.cpp
@@ -15,18 +15,22 @@ using namespace std;
using namespace Ice;
using namespace Test;
-TestIntfPrx
+TestIntfPrxPtr
allTests(const CommunicatorPtr& communicator)
{
cout << "testing stringToProxy... " << flush;
- ObjectPrx base = communicator->stringToProxy("test:default -p 12010");
+ ObjectPrxPtr base = communicator->stringToProxy("test:default -p 12010");
test(base);
cout << "ok" << endl;
cout << "testing checked cast... " << flush;
- TestIntfPrx obj = TestIntfPrx::checkedCast(base);
+ TestIntfPrxPtr obj = ICE_CHECKED_CAST(TestIntfPrx, base);
test(obj);
+#ifdef ICE_CPP11_MAPPING
+ test(Ice::targetEquals(obj, base));
+#else
test(obj == base);
+#endif
cout << "ok" << endl;
{
@@ -64,7 +68,11 @@ allTests(const CommunicatorPtr& communicator)
Ice::InitializationData initData;
initData.properties = communicator->getProperties()->clone();
Ice::CommunicatorPtr comm = Ice::initialize(initData);
+#ifdef ICE_CPP11_MAPPING
+ comm->stringToProxy("test:default -p 12010")->ice_ping_async();
+#else
comm->stringToProxy("test:default -p 12010")->begin_ice_ping();
+#endif
comm->destroy();
}
cout << "ok" << endl;