From: Brian Aker Date: Wed, 20 Jan 2010 02:26:22 +0000 (-0800) Subject: Fix for OSX, where cork is slow.... X-Git-Tag: 0.40~74 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=a051e4267f9ae0630dd939bf1fef51d0fea8cd97;p=awesomized%2Flibmemcached Fix for OSX, where cork is slow.... --- diff --git a/tests/mem_functions.c b/tests/mem_functions.c index 6a8cb11f..281f5938 100644 --- a/tests/mem_functions.c +++ b/tests/mem_functions.c @@ -3404,8 +3404,13 @@ static test_return_t pre_cork(memcached_st *memc) { memcached_return_t rc; bool set= true; + rc= memcached_behavior_set(memc, MEMCACHED_BEHAVIOR_CORK, set); +#ifdef __APPLE__ + return TEST_SKIPPED; +#endif + if (rc == MEMCACHED_SUCCESS) return TEST_SUCCESS; @@ -3418,6 +3423,10 @@ static test_return_t pre_cork_and_nonblock(memcached_st *memc) rc= pre_cork(memc); +#ifdef __APPLE__ + return TEST_SKIPPED; +#endif + if (rc != TEST_SUCCESS) return rc;