2
0
mirror of https://github.com/boostorg/thread.git synced 2026-01-28 07:42:12 +00:00

Thread: increase the number of cycles of the failing tests.

[SVN r86732]
This commit is contained in:
Vicente J. Botet Escriba
2013-11-17 00:32:28 +00:00
parent 44f9a2f4ad
commit 5753026ceb
5 changed files with 43 additions and 4 deletions

View File

@@ -50,6 +50,10 @@ boost::shared_future<int> shared_compute(int x)
int main()
{
const int number_of_tests = 100;
for (int i=0; i< number_of_tests; i++)
try
{
#if defined BOOST_THREAD_USES_MOVE
{
boost::future<void> f = void_compute();
@@ -68,5 +72,16 @@ int main()
boost::shared_future<int> f = shared_compute(2);
std::cout << f.get() << std::endl;
}
}
catch (std::exception& ex)
{
std::cout << "ERRORRRRR "<<ex.what() << "" << std::endl;
return 1;
}
catch (...)
{
std::cout << "ERRORRRRR "<<"ERRORRRRR exception thrown" << std::endl;
return 2;
}
return 0;
}