diff options
Diffstat (limited to 'cpp/test/IceGrid/allocation/AllTests.cpp')
-rw-r--r-- | cpp/test/IceGrid/allocation/AllTests.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/cpp/test/IceGrid/allocation/AllTests.cpp b/cpp/test/IceGrid/allocation/AllTests.cpp index b9331e9329d..6f2db328b9d 100644 --- a/cpp/test/IceGrid/allocation/AllTests.cpp +++ b/cpp/test/IceGrid/allocation/AllTests.cpp @@ -388,7 +388,12 @@ allTests(const Ice::CommunicatorPtr& communicator) } catch(const AllocationException&) { + test(false); } + catch(const ObjectNotRegisteredException&) + { + } + try { session2->allocateObjectById(communicator->stringToIdentity("nonallocatable")); @@ -396,7 +401,12 @@ allTests(const Ice::CommunicatorPtr& communicator) } catch(const AllocationException&) { + test(false); } + catch(const ObjectNotRegisteredException&) + { + } + try { session1->releaseObject(communicator->stringToIdentity("nonallocatable")); @@ -404,7 +414,12 @@ allTests(const Ice::CommunicatorPtr& communicator) } catch(const AllocationException&) { + test(false); } + catch(const ObjectNotRegisteredException&) + { + } + try { session2->releaseObject(communicator->stringToIdentity("nonallocatable")); @@ -412,6 +427,10 @@ allTests(const Ice::CommunicatorPtr& communicator) } catch(const AllocationException&) { + test(false); + } + catch(const ObjectNotRegisteredException&) + { } session1->allocateObjectById(allocatable); |