Fix for OSX, where cork is slow....
authorBrian Aker <brian@gaz>
Wed, 20 Jan 2010 02:26:22 +0000 (18:26 -0800)
committerBrian Aker <brian@gaz>
Wed, 20 Jan 2010 02:26:22 +0000 (18:26 -0800)
tests/mem_functions.c

index 6a8cb11fba88fd8e054840a55020a3363f8e7b21..281f5938b151665997c5f1c3a9c723452a0f9703 100644 (file)
@@ -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;