diff options
author | Mark Spruiell <mes@zeroc.com> | 2009-01-22 14:06:01 -0800 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2009-01-22 14:06:01 -0800 |
commit | af5e1299b19c7d84f907396501831f2b6d7e787c (patch) | |
tree | 81358199b091a4a87a51941fafddbfccbac478ae /cpp/test/Ice/udp/AllTests.cpp | |
parent | Fix 3660 - IcePy and setldopenflags (diff) | |
download | ice-af5e1299b19c7d84f907396501831f2b6d7e787c.tar.bz2 ice-af5e1299b19c7d84f907396501831f2b6d7e787c.tar.xz ice-af5e1299b19c7d84f907396501831f2b6d7e787c.zip |
minor fix to udp test for multicast failure in presence of firewall
Diffstat (limited to 'cpp/test/Ice/udp/AllTests.cpp')
-rw-r--r-- | cpp/test/Ice/udp/AllTests.cpp | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/cpp/test/Ice/udp/AllTests.cpp b/cpp/test/Ice/udp/AllTests.cpp index 7b05acad659..19b79b0c2c2 100644 --- a/cpp/test/Ice/udp/AllTests.cpp +++ b/cpp/test/Ice/udp/AllTests.cpp @@ -128,13 +128,20 @@ allTests(const CommunicatorPtr& communicator) replyI->reset(); obj->ping(reply); - ret = replyI->waitReply(5, IceUtil::Time::seconds(2)); - test(ret == true); + if(!replyI->waitReply(5, IceUtil::Time::seconds(2))) + { + cout << "failed (is a firewall enabled?)" << endl; + return obj; + } replyI->reset(); obj->ping(reply); - ret = replyI->waitReply(5, IceUtil::Time::seconds(2)); - test(ret == true); + if(!replyI->waitReply(5, IceUtil::Time::seconds(2))) + { + cout << "failed (is a firewall enabled?)" << endl; + return obj; + } + cout << "ok" << endl; return obj; |