diff options
Diffstat (limited to 'cpp/test/Ice/exceptions')
-rw-r--r-- | cpp/test/Ice/exceptions/AllTests.cpp | 40 |
1 files changed, 25 insertions, 15 deletions
diff --git a/cpp/test/Ice/exceptions/AllTests.cpp b/cpp/test/Ice/exceptions/AllTests.cpp index 7fb9c1a930a..32302c5c6d8 100644 --- a/cpp/test/Ice/exceptions/AllTests.cpp +++ b/cpp/test/Ice/exceptions/AllTests.cpp @@ -988,32 +988,42 @@ allTests(const Ice::CommunicatorPtr& communicator) catch(const Ice::ConnectionLostException&) { } + catch(const Ice::UnknownLocalException&) + { + // Expected with JS bidir server + } catch(const Ice::LocalException& ex) { cerr << ex << endl; test(false); } - ThrowerPrxPtr thrower2 = - ICE_UNCHECKED_CAST(ThrowerPrx, communicator->stringToProxy("thrower:" + getTestEndpoint(communicator, 1))); - try - { - thrower2->throwMemoryLimitException(Ice::ByteSeq(2 * 1024 * 1024)); // 2MB (no limits) - } - catch(const Ice::MemoryLimitException&) - { - } - ThrowerPrxPtr thrower3 = - ICE_UNCHECKED_CAST(ThrowerPrx, communicator->stringToProxy("thrower:" + getTestEndpoint(communicator, 2))); try { - thrower3->throwMemoryLimitException(Ice::ByteSeq(1024)); // 1KB limit - test(false); + ThrowerPrxPtr thrower2 = + ICE_UNCHECKED_CAST(ThrowerPrx, communicator->stringToProxy("thrower:" + getTestEndpoint(communicator, 1))); + try + { + thrower2->throwMemoryLimitException(Ice::ByteSeq(2 * 1024 * 1024)); // 2MB (no limits) + } + catch(const Ice::MemoryLimitException&) + { + } + ThrowerPrxPtr thrower3 = + ICE_UNCHECKED_CAST(ThrowerPrx, communicator->stringToProxy("thrower:" + getTestEndpoint(communicator, 2))); + try + { + thrower3->throwMemoryLimitException(Ice::ByteSeq(1024)); // 1KB limit + test(false); + } + catch(const Ice::ConnectionLostException&) + { + } } - catch(const Ice::ConnectionLostException&) + catch(const Ice::ConnectionRefusedException&) { + // Expected with JS bidir server } - cout << "ok" << endl; } |