Speed up host lookup for cases where we don't need to do it, or where it ends up...
[awesomized/libmemcached] / tests / cycle.cc
index fe4ca1b37016180dc860924f7f37bd2dea28ee74..32df0da0883e74ec4813035f3dc758d1b06b3923 100644 (file)
@@ -116,12 +116,18 @@ 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);