Abstract out read method.
[m6w6/libmemcached] / tests / memrm.cc
index 8d6109c0ac679084e66662df942d57ce4bd20929..5c3b6d529c3918f52d3a65e7f059c2bcd7e145f5 100644 (file)
@@ -146,7 +146,7 @@ collection_st collection[] ={
 
 static void *world_create(server_startup_st& servers, test_return_t& error)
 {
-  if (HAVE_MEMCACHED_BINARY == 0)
+  if (libtest::has_memcached() == false)
   {
     error= TEST_SKIPPED;
     return NULL;
@@ -163,7 +163,7 @@ static void *world_create(server_startup_st& servers, test_return_t& error)
 
 void get_world(Framework *world)
 {
-  world->collections= collection;
-  world->_create= world_create;
+  world->collections(collection);
+  world->create(world_create);
 }