Update to support new warnings.
[m6w6/libmemcached] / tests / cycle.cc
index 788d7e67bf88bd7ac8eb9d09d89cbc1aa776a8c7..32df0da0883e74ec4813035f3dc758d1b06b3923 100644 (file)
@@ -116,14 +116,20 @@ collection_st collection[] ={
   {0, 0, 0, 0}
 };
 
-static void *world_create(server_startup_st& servers, test_return_t& )
+static void *world_create(server_startup_st& servers, test_return_t& error)
 {
+  if (libtest::has_memcached() == false)
+  {
+    error= TEST_SKIPPED;
+    return NULL;
+  }
+
   return &servers;
 }
 
-void get_world(Framework *world)
+void get_world(libtest::Framework* world)
 {
-  world->collections= collection;
-  world->_create= world_create;
+  world->collections(collection);
+  world->create(world_create);
 }