summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/hold/AllTests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Ice/hold/AllTests.cpp')
-rw-r--r--cpp/test/Ice/hold/AllTests.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/cpp/test/Ice/hold/AllTests.cpp b/cpp/test/Ice/hold/AllTests.cpp
index 9a19d99a352..47aa8394274 100644
--- a/cpp/test/Ice/hold/AllTests.cpp
+++ b/cpp/test/Ice/hold/AllTests.cpp
@@ -14,7 +14,7 @@
using namespace std;
using namespace Test;
-HoldPrx
+void
allTests(const Ice::CommunicatorPtr& communicator)
{
cout << "testing stringToProxy... " << flush;
@@ -29,5 +29,14 @@ allTests(const Ice::CommunicatorPtr& communicator)
test(hold == base);
cout << "ok" << endl;
- return hold;
+ cout << "changing state between active and hold rapidly... ";
+ for(int i = 0; i < 100; ++i)
+ {
+ hold->putOnHold(0);
+ }
+ cout << "ok" << endl;
+
+ cout << "changing state to hold and shutting down server... ";
+ hold->shutdown();
+ cout << "ok" << endl;
}