summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/interceptor/Client.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2016-07-22 17:09:25 -0400
committerBernard Normier <bernard@zeroc.com>2016-07-22 17:09:25 -0400
commit752e06b4eb63abb8a30bb958802eaedda72d3806 (patch)
tree7c2348544d202c310a55a62629abc4025daa03a5 /cpp/test/Ice/interceptor/Client.cpp
parentDisable VS 2015 update 3 optimizer (diff)
downloadice-752e06b4eb63abb8a30bb958802eaedda72d3806.tar.bz2
ice-752e06b4eb63abb8a30bb958802eaedda72d3806.tar.xz
ice-752e06b4eb63abb8a30bb958802eaedda72d3806.zip
Added ICE_BUILDING_SRC to make builds
Ice::Dispatcher and Ice::LocalObject are now hidden with C++11 Reworked C++11 exception ice_clone, added ExceptionHelper + other C++ cleanups
Diffstat (limited to 'cpp/test/Ice/interceptor/Client.cpp')
-rw-r--r--cpp/test/Ice/interceptor/Client.cpp31
1 files changed, 1 insertions, 30 deletions
diff --git a/cpp/test/Ice/interceptor/Client.cpp b/cpp/test/Ice/interceptor/Client.cpp
index e2bc99e9ec9..c49abdf807e 100644
--- a/cpp/test/Ice/interceptor/Client.cpp
+++ b/cpp/test/Ice/interceptor/Client.cpp
@@ -319,22 +319,8 @@ Client::runAmd(const Test::MyObjectPrxPtr& prx, const AMDInterceptorIPtr& interc
test(interceptor->getLastStatus() == Ice::DispatchAsync);
test(interceptor->getActualStatus() == Ice::DispatchAsync);
-#ifdef ICE_CPP11_MAPPING
- try
- {
- rethrow_exception(interceptor->getException());
- test(false);
- }
- catch(const Ice::ObjectNotExistException&)
- {
- }
- catch(...)
- {
- test(false);
- }
-#else
test(dynamic_cast<Ice::ObjectNotExistException*>(interceptor->getException()) != 0);
-#endif
+
cout << "ok" << endl;
cout << "testing system exception... " << flush;
interceptor->clear();
@@ -354,22 +340,7 @@ Client::runAmd(const Test::MyObjectPrxPtr& prx, const AMDInterceptorIPtr& interc
test(interceptor->getLastOperation() == "amdBadSystemAdd");
test(interceptor->getLastStatus() == Ice::DispatchAsync);
test(interceptor->getActualStatus() == Ice::DispatchAsync);
-#ifdef ICE_CPP11_MAPPING
- try
- {
- rethrow_exception(interceptor->getException());
- test(false);
- }
- catch(const MySystemException&)
- {
- }
- catch(...)
- {
- test(false);
- }
-#else
test(dynamic_cast<MySystemException*>(interceptor->getException()) != 0);
-#endif
cout << "ok" << endl;
return EXIT_SUCCESS;
}