diff options
Diffstat (limited to 'cpp/test/IceGrid/allocation/AllTests.cpp')
-rw-r--r-- | cpp/test/IceGrid/allocation/AllTests.cpp | 126 |
1 files changed, 126 insertions, 0 deletions
diff --git a/cpp/test/IceGrid/allocation/AllTests.cpp b/cpp/test/IceGrid/allocation/AllTests.cpp index d1a833788fb..db223ae8ee1 100644 --- a/cpp/test/IceGrid/allocation/AllTests.cpp +++ b/cpp/test/IceGrid/allocation/AllTests.cpp @@ -214,6 +214,9 @@ public: os << "stress-" << IceUtilInternal::random(6) + 1; try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif return session->allocateObjectById(_communicator->stringToIdentity(os.str())); } catch(const AllocationTimeoutException&) @@ -233,6 +236,9 @@ public: { try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif return session->allocateObjectByType("::StressTest"); } catch(const AllocationTimeoutException&) @@ -419,6 +425,9 @@ allTests(const Ice::CommunicatorPtr& communicator) try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif session1->allocateObjectById(communicator->stringToIdentity("dummy")); } catch(const ObjectNotRegisteredException&) @@ -426,6 +435,9 @@ allTests(const Ice::CommunicatorPtr& communicator) } try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif session1->releaseObject(communicator->stringToIdentity("dummy")); } catch(const ObjectNotRegisteredException&) @@ -434,6 +446,9 @@ allTests(const Ice::CommunicatorPtr& communicator) try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif session1->allocateObjectById(communicator->stringToIdentity("nonallocatable")); test(false); } @@ -447,6 +462,9 @@ allTests(const Ice::CommunicatorPtr& communicator) try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif session2->allocateObjectById(communicator->stringToIdentity("nonallocatable")); test(false); } @@ -460,6 +478,9 @@ allTests(const Ice::CommunicatorPtr& communicator) try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif session1->releaseObject(communicator->stringToIdentity("nonallocatable")); test(false); } @@ -473,6 +494,9 @@ allTests(const Ice::CommunicatorPtr& communicator) try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif session2->releaseObject(communicator->stringToIdentity("nonallocatable")); test(false); } @@ -487,6 +511,9 @@ allTests(const Ice::CommunicatorPtr& communicator) session1->allocateObjectById(allocatable); try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif session1->allocateObjectById(allocatable); test(false); } @@ -499,6 +526,9 @@ allTests(const Ice::CommunicatorPtr& communicator) try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif session2->allocateObjectById(allocatable); test(false); } @@ -507,6 +537,9 @@ allTests(const Ice::CommunicatorPtr& communicator) } try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif session2->releaseObject(allocatable); test(false); } @@ -517,6 +550,9 @@ allTests(const Ice::CommunicatorPtr& communicator) session1->allocateObjectById(allocatablebis); try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif session2->allocateObjectById(allocatablebis); test(false); } @@ -527,6 +563,9 @@ allTests(const Ice::CommunicatorPtr& communicator) session2->allocateObjectById(allocatablebis); try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif session1->allocateObjectById(allocatablebis); test(false); } @@ -547,6 +586,9 @@ allTests(const Ice::CommunicatorPtr& communicator) session1->setAllocationTimeout(0); try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif session1->allocateObjectById(allocatable); test(false); } @@ -555,6 +597,9 @@ allTests(const Ice::CommunicatorPtr& communicator) } try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif session1->releaseObject(allocatable); test(false); } @@ -582,6 +627,9 @@ allTests(const Ice::CommunicatorPtr& communicator) try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif obj = session1->allocateObjectByType("::Unknown"); test(false); } @@ -595,6 +643,9 @@ allTests(const Ice::CommunicatorPtr& communicator) try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif obj = session1->allocateObjectByType("::NotAllocatable"); test(false); } @@ -610,6 +661,9 @@ allTests(const Ice::CommunicatorPtr& communicator) test(obj && obj->ice_getIdentity().name == "allocatable"); try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif session1->allocateObjectByType("::Test"); test(false); } @@ -618,6 +672,9 @@ allTests(const Ice::CommunicatorPtr& communicator) } try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif session2->allocateObjectByType("::Test"); test(false); } @@ -626,6 +683,9 @@ allTests(const Ice::CommunicatorPtr& communicator) } try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif session2->releaseObject(obj->ice_getIdentity()); } catch(const AllocationException&) @@ -635,6 +695,9 @@ allTests(const Ice::CommunicatorPtr& communicator) session1->releaseObject(obj->ice_getIdentity()); try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif session1->releaseObject(obj->ice_getIdentity()); } catch(const AllocationException&) @@ -645,6 +708,9 @@ allTests(const Ice::CommunicatorPtr& communicator) test(obj && obj->ice_getIdentity().name == "allocatable"); try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif session2->allocateObjectByType("::Test"); test(false); } @@ -653,6 +719,9 @@ allTests(const Ice::CommunicatorPtr& communicator) } try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif session1->allocateObjectByType("::Test"); test(false); } @@ -662,6 +731,9 @@ allTests(const Ice::CommunicatorPtr& communicator) session1->allocateObjectByType("::TestBis"); try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif session2->allocateObjectByType("::TestBis"); test(false); } @@ -672,6 +744,9 @@ allTests(const Ice::CommunicatorPtr& communicator) session2->allocateObjectByType("::TestBis"); try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif session1->allocateObjectByType("::TestBis"); test(false); } @@ -700,6 +775,9 @@ allTests(const Ice::CommunicatorPtr& communicator) session2->setAllocationTimeout(500); try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif session2->allocateObjectById(allocatable); test(false); } @@ -710,6 +788,9 @@ allTests(const Ice::CommunicatorPtr& communicator) time = IceUtil::Time::now(); try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif session2->allocateObjectById(allocatable); test(false); } @@ -720,6 +801,9 @@ allTests(const Ice::CommunicatorPtr& communicator) time = IceUtil::Time::now(); try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif session2->allocateObjectByType("::Test"); test(false); } @@ -744,6 +828,9 @@ allTests(const Ice::CommunicatorPtr& communicator) session1->allocateObjectById(allocatable3); try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif session2->allocateObjectById(allocatable3); test(false); } @@ -752,6 +839,9 @@ allTests(const Ice::CommunicatorPtr& communicator) } try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif session2->allocateObjectById(allocatable4); test(false); } @@ -763,6 +853,9 @@ allTests(const Ice::CommunicatorPtr& communicator) session1->releaseObject(allocatable3); try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif session2->allocateObjectById(allocatable3); test(false); } @@ -773,6 +866,9 @@ allTests(const Ice::CommunicatorPtr& communicator) session2->allocateObjectById(allocatable3); try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif session1->allocateObjectById(allocatable3); test(false); } @@ -781,6 +877,9 @@ allTests(const Ice::CommunicatorPtr& communicator) } try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif session1->allocateObjectById(allocatable4); test(false); } @@ -791,6 +890,9 @@ allTests(const Ice::CommunicatorPtr& communicator) session2->releaseObject(allocatable3); try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif session1->allocateObjectById(allocatable3); test(false); } @@ -799,6 +901,9 @@ allTests(const Ice::CommunicatorPtr& communicator) } try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif session1->allocateObjectByType("::TestServer1"); test(false); } @@ -807,6 +912,9 @@ allTests(const Ice::CommunicatorPtr& communicator) } try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif session1->allocateObjectByType("::TestServer2"); test(false); } @@ -816,6 +924,9 @@ allTests(const Ice::CommunicatorPtr& communicator) test(session2->allocateObjectByType("::TestServer1")); try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif session2->allocateObjectByType("::TestServer1"); test(false); } @@ -824,6 +935,9 @@ allTests(const Ice::CommunicatorPtr& communicator) } try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif session2->allocateObjectByType("::TestServer2"); test(false); } @@ -864,6 +978,9 @@ allTests(const Ice::CommunicatorPtr& communicator) test(session1->allocateObjectByType("::TestMultipleByServer")); try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif session2->allocateObjectByType("::TestMultipleByServer"); test(false); } @@ -876,6 +993,9 @@ allTests(const Ice::CommunicatorPtr& communicator) test(session2->allocateObjectByType("::TestMultipleByServer")); try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif session1->allocateObjectByType("::TestMultipleByServer"); test(false); } @@ -892,6 +1012,9 @@ allTests(const Ice::CommunicatorPtr& communicator) test(obj2); try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif session1->allocateObjectByType("::TestMultipleServer"); test(false); } @@ -900,6 +1023,9 @@ allTests(const Ice::CommunicatorPtr& communicator) } try { +#if defined(__BCPLUSPLUS__) && (__BCPLUSPLUS__ >= 0x0600) + IceUtil::DummyBCC dummy; +#endif session2->allocateObjectByType("::TestMultipleServer"); test(false); } |