summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2014-10-23 18:36:29 +0200
committerBenoit Foucher <benoit@zeroc.com>2014-10-24 10:41:40 +0200
commitcc5acb5e35b43cb8fe44b0e218f7c82654fb843d (patch)
treeb133ebde7835f65514d10a500c279885d68f33fe /cpp
parentMore gradle changes. (diff)
downloadice-cc5acb5e35b43cb8fe44b0e218f7c82654fb843d.tar.bz2
ice-cc5acb5e35b43cb8fe44b0e218f7c82654fb843d.tar.xz
ice-cc5acb5e35b43cb8fe44b0e218f7c82654fb843d.zip
Fixed ICE-5452: hold test hang
Diffstat (limited to 'cpp')
-rw-r--r--cpp/test/Ice/hold/AllTests.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/cpp/test/Ice/hold/AllTests.cpp b/cpp/test/Ice/hold/AllTests.cpp
index 2734cc446f3..dec00c3efe2 100644
--- a/cpp/test/Ice/hold/AllTests.cpp
+++ b/cpp/test/Ice/hold/AllTests.cpp
@@ -133,7 +133,16 @@ allTests(const Ice::CommunicatorPtr& communicator)
{
result->waitForSent();
}
+
+ if(value > 1000000)
+ {
+ // Don't continue, it's possible that out-of-order dispatch doesn't occur
+ // after 100000 iterations and we don't want the test to last for too long
+ // when this occurs.
+ break;
+ }
}
+ test(value > 100000 || !cond->value());
result->waitForCompleted();
}
cout << "ok" << endl;