Fix for test cases to make sure memcached is around.
[m6w6/libmemcached] / tests / memerror.cc
index dd7610ef625cb9be3a23cbb47742fa959f21535d..1c893e11b5851b4244cba2412801c4282baf57ac 100644 (file)
@@ -111,8 +111,14 @@ collection_st collection[] ={
   {0, 0, 0, 0}
 };
 
-static void *world_create(server_startup_st&, test_return_t&)
+static void *world_create(server_startup_st&, test_return_t& error)
 {
+  if (libtest::has_memcached() == false)
+  {
+    error= TEST_SKIPPED;
+    return NULL;
+  }
+
   return NULL;
 }