summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/info/AllTests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Ice/info/AllTests.cpp')
-rw-r--r--cpp/test/Ice/info/AllTests.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/cpp/test/Ice/info/AllTests.cpp b/cpp/test/Ice/info/AllTests.cpp
index 3997c533a56..14c7f6a6623 100644
--- a/cpp/test/Ice/info/AllTests.cpp
+++ b/cpp/test/Ice/info/AllTests.cpp
@@ -18,6 +18,10 @@ using namespace Test;
void
allTests(const Ice::CommunicatorPtr& communicator)
{
+ Ice::PropertiesPtr properties = communicator->getProperties();
+ properties->setProperty("Ice.UDP.SndSize", "1024");
+ properties->setProperty("Ice.UDP.RcvSize", "2048");
+
cout << "testing proxy endpoint information... " << flush;
{
Ice::ObjectPrx p1 =
@@ -60,6 +64,8 @@ allTests(const Ice::CommunicatorPtr& communicator)
test(!udpEndpoint->secure());
test(udpEndpoint->datagram());
test(udpEndpoint->type() == Ice::UDPEndpointType);
+ test(udpEndpoint->sndBufSize == -1);
+ test(udpEndpoint->rcvBufSize == -1);
Ice::OpaqueEndpointInfoPtr opaqueEndpoint = Ice::OpaqueEndpointInfoPtr::dynamicCast(endps[2]->getInfo());
test(opaqueEndpoint);
@@ -94,6 +100,8 @@ allTests(const Ice::CommunicatorPtr& communicator)
test(udpEndpoint->host == defaultHost);
test(udpEndpoint->datagram());
test(udpEndpoint->port > 0);
+ test(udpEndpoint->sndBufSize == 1024);
+ test(udpEndpoint->rcvBufSize == 2048);
adapter->destroy();