From: Trond Norbye Date: Thu, 19 Mar 2009 17:03:33 +0000 (+0100) Subject: Lower the number of iterations in add_wrapper X-Git-Tag: 0.27~10 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=f7ad44f17fd1a16ba9b80b30566d000cc4ef8d2b;p=awesomized%2Flibmemcached Lower the number of iterations in add_wrapper --- 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);