From f7ad44f17fd1a16ba9b80b30566d000cc4ef8d2b Mon Sep 17 00:00:00 2001 From: Trond Norbye Date: Thu, 19 Mar 2009 18:03:33 +0100 Subject: [PATCH] Lower the number of iterations in add_wrapper --- tests/function.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/function.c b/tests/function.c index 40415daf..f7dad825 100644 --- a/tests/function.c +++ b/tests/function.c @@ -543,9 +543,20 @@ static test_return add_test(memcached_st *memc) return 0; } +/* +** There was a problem of leaking filedescriptors in the initial release +** of MacOSX 10.5. This test case triggers the problem. On some Solaris +** systems it seems that the kernel is slow on reclaiming the resources +** because the connects starts to time out (the test doesn't do much +** anyway, so just loop 10 iterations) +*/ static test_return add_wrapper(memcached_st *memc) { unsigned int x; + unsigned int max= 10000; +#ifdef __sun + max= 10; +#endif for (x= 0; x < 10000; x++) add_test(memc); -- 2.30.2