summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/udp/Client.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2009-12-17 15:03:58 +0100
committerBenoit Foucher <benoit@zeroc.com>2009-12-17 15:03:58 +0100
commit065c27edf4c76502df7b845059727c1cdeac2e31 (patch)
treeddb2b1e5a117d681b67c5044c0bd3ee9903f4fea /cpp/test/Ice/udp/Client.cpp
parentFix for bug 4493 - bumped sleep for close timeout test (diff)
downloadice-065c27edf4c76502df7b845059727c1cdeac2e31.tar.bz2
ice-065c27edf4c76502df7b845059727c1cdeac2e31.tar.xz
ice-065c27edf4c76502df7b845059727c1cdeac2e31.zip
Fixed bug 4488 - hang if multicast fails
Diffstat (limited to 'cpp/test/Ice/udp/Client.cpp')
-rw-r--r--cpp/test/Ice/udp/Client.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/cpp/test/Ice/udp/Client.cpp b/cpp/test/Ice/udp/Client.cpp
index f09dadc6c95..0fea9fdb14d 100644
--- a/cpp/test/Ice/udp/Client.cpp
+++ b/cpp/test/Ice/udp/Client.cpp
@@ -17,9 +17,16 @@ using namespace Test;
int
run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
{
- TestIntfPrx allTests(const Ice::CommunicatorPtr&);
- TestIntfPrx obj = allTests(communicator);
- obj->shutdown();
+ void allTests(const Ice::CommunicatorPtr&);
+ allTests(communicator);
+
+ int num = argc == 2 ? atoi(argv[1]) : 0;
+ for(int i = 0; i < num; i++)
+ {
+ ostringstream os;
+ os << "control:tcp -p " << (12010 + i);
+ TestIntfPrx::uncheckedCast(communicator->stringToProxy(os.str()))->shutdown();
+ }
return EXIT_SUCCESS;
}