summaryrefslogtreecommitdiff
path: root/cppe/test/IceE/operations/AllTests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cppe/test/IceE/operations/AllTests.cpp')
-rw-r--r--cppe/test/IceE/operations/AllTests.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/cppe/test/IceE/operations/AllTests.cpp b/cppe/test/IceE/operations/AllTests.cpp
index 6ed4ba397cf..488ba4168fe 100644
--- a/cppe/test/IceE/operations/AllTests.cpp
+++ b/cppe/test/IceE/operations/AllTests.cpp
@@ -108,6 +108,18 @@ allTests(const Ice::CommunicatorPtr& communicator)
tprintf("ok\n");
//XXXX:
+ tprintf("testing timeout...");
+ Test::MyClassPrx clTimeout = Test::MyClassPrx::uncheckedCast(cl->ice_timeout(500));
+ try
+ {
+ clTimeout->opSleep(1000);
+ assert(false);
+ }
+ catch(const Ice::TimeoutException&)
+ {
+ }
+ tprintf("ok\n");
+
tprintf("testing twoway operations... ");
void twoways(const Ice::CommunicatorPtr&, const Test::MyClassPrx&);
twoways(communicator, cl);